Buggy code:
public class SAXParser extends XMLParser implements XMLDocumentHandler , XMLDocumentHandler . DTDHandler , Parser , XMLReader { private static final String [ ] RECOGNIZED_FEATURES = new String [ ] { "http:////xml.org//sax//features//namespace-prefixes" , "http:////xml.org//sax//features//string-interning" } ; private static final String [ ] RECOGNIZED_PROPERTIES = new String [ ] { "http:////xml.org//sax//properties//lexical-handler" , "http:////xml.org//sax//properties//declaration-handler" , "http:////xml.org//sax//properties//dom-node" } ; private static final boolean DEBUG_CALLBACKS = false ; private DocumentHandler fDocumentHandler ; private DTDHandler fDTDHandler ; private ContentHandler fContentHandler ; private DeclHandler fDeclHandler ; private LexicalHandler fLexicalHandler ; private boolean fNamespacePrefixes = false ; private transient AttributesImpl fAttributes = new AttributesImpl ( ) ; public SAXParser ( ) { } public String [ ] getFeaturesRecognized ( ) { } public String [ ] getPropertiesRecognized ( ) { } protected void setDeclHandler ( DeclHandler handler ) throws SAXNotRecognizedException , SAXNotSupportedException { } protected DeclHandler getDeclHandler ( ) throws SAXNotRecognizedException , SAXNotSupportedException { } protected void setLexicalHandler ( LexicalHandler handler ) throws SAXNotRecognizedException , SAXNotSupportedException { } protected LexicalHandler getLexicalHandler ( ) throws SAXNotRecognizedException , SAXNotSupportedException { } public void setDocumentHandler ( DocumentHandler handler ) { } public void setDTDHandler ( DTDHandler handler ) { } public DTDHandler getDTDHandler ( ) { } protected void setNamespacePrefixes ( boolean process ) throws SAXNotRecognizedException , SAXNotSupportedException { } protected boolean getNamespacePrefixes ( ) throws SAXNotRecognizedException , SAXNotSupportedException { } public void setFeature ( String featureId , boolean state ) throws SAXNotRecognizedException , SAXNotSupportedException { } public boolean getFeature ( String featureId ) throws SAXNotRecognizedException , SAXNotSupportedException { } public void setProperty ( String propertyId , Object value ) throws SAXNotRecognizedException , SAXNotSupportedException { } public Object getProperty ( String propertyId ) throws SAXNotRecognizedException , SAXNotSupportedException { } public void setContentHandler ( ContentHandler handler ) { } public ContentHandler getContentHandler ( ) { } public void startDTD ( QName rootElement , int publicId , int systemId ) throws Exception { } public void endDTD ( ) throws Exception { } public void elementDecl ( QName elementDecl , int contentSpecType , int contentSpecIndex , XMLContentSpec . Provider contentSpecProvider ) throws Exception { } public void attlistDecl ( QName elementDecl , QName attributeDecl , int attType , boolean attList , String enumString , int attDefaultType , int attDefaultValue ) throws Exception { if ( ( ( fDeclHandler ) != null ) || ( SAXParser . DEBUG_CALLBACKS ) ) { String eName = fStringPool . toString ( elementDecl . rawname ) ; String aName = fStringPool . toString ( attributeDecl . rawname ) ; String aType = enumString ; if ( attType != ( XMLAttributeDecl . TYPE_ENUMERATION ) ) { switch ( attType ) { case XMLAttributeDecl . TYPE_CDATA : { aType = "CDATA" ; break ; } case XMLAttributeDecl . TYPE_ENTITY : { aType = ( attList ) ? "ENTITIES" : "ENTITY" ; break ; } case XMLAttributeDecl . TYPE_ID : { aType = "ID" ; break ; } case XMLAttributeDecl . TYPE_IDREF : { aType = ( attList ) ? "IDREFS" : "IDREF" ; break ; } case XMLAttributeDecl . TYPE_NMTOKEN : { aType = ( attList ) ? "NMTOKENS" : "NMTOKEN" ; break ; } case XMLAttributeDecl . TYPE_NOTATION : { aType = "NOTATION<seq2seq4repair_space>" + enumString ; break ; } } } <START_BUG> String aDefaultType = "" ; <END_BUG> switch ( attDefaultType ) { case XMLAttributeDecl . DEFAULT_TYPE_FIXED : { aDefaultType = "#FIXED" ; break ; } case XMLAttributeDecl . DEFAULT_TYPE_IMPLIED : { aDefaultType = "#IMPLIED" ; break ; } case XMLAttributeDecl . DEFAULT_TYPE_REQUIRED : { aDefaultType = "#REQUIRED" ; break ; } } String aDefaultValue = fStringPool . toString ( attDefaultValue ) ; if ( SAXParser . DEBUG_CALLBACKS ) { System . err . println ( ( ( ( ( ( ( ( ( ( ( "attributeDecl(" + eName ) + ",<seq2seq4repair_space>" ) + aName ) + ",<seq2seq4repair_space>" ) + aType ) + ",<seq2seq4repair_space>" ) + aDefaultType ) + ",<seq2seq4repair_space>" ) + aDefaultValue ) + ")" ) ) ; } if ( ( fDeclHandler ) != null ) { fDeclHandler . attributeDecl ( eName , aName , aType , aDefaultType , aDefaultValue ) ; } } } public void internalPEDecl ( int entityName , int entityValue ) throws Exception { } public void externalPEDecl ( int entityName , int publicId , int systemId ) throws Exception { } public void internalEntityDecl ( int entityName , int entityValue ) throws Exception { } public void externalEntityDecl ( int entityName , int publicId , int systemId ) throws Exception { } public void unparsedEntityDecl ( int entityName , int publicId , int systemId , int notationName ) throws Exception { } public void notationDecl ( int notationName , int publicId , int systemId ) throws Exception { } public void startDocument ( ) throws Exception { } public void endDocument ( ) throws Exception { } public void xmlDecl ( int versionIndex , int encodingIndex , int standaloneIndex ) throws Exception { } public void textDecl ( int versionIndex , int encodingIndex ) throws Exception { } public void startNamespaceDeclScope ( int prefix , int uri ) throws Exception { } public void endNamespaceDeclScope ( int prefix ) throws Exception { } public void internalSubset ( int internalSubset ) { } public void startElement ( QName element , XMLAttrList attrList , int attrListIndex ) throws Exception { } public void endElement ( QName element ) throws Exception { } public void startEntityReference ( int entityName , int entityType , int entityContext ) throws Exception { } public void endEntityReference ( int entityName , int entityType , int entityContext ) throws Exception { } public void startCDATA ( ) throws Exception { } public void endCDATA ( ) throws Exception { } public void characters ( int dataIndex ) throws Exception { } public void ignorableWhitespace ( int dataIndex ) throws Exception { } public void processingInstruction ( int piTarget , int piData ) throws Exception { } public void comment ( int dataIndex ) throws Exception { }

Fix:
String aDefaultType = null ;