Buggy code:
} public static final String SchemaForSchemaURI = "http:////www.w3.org//TR-1//Schema" ; private TraverseSchema ( ) { } public void setGrammarResolver ( GrammarResolver grammarResolver ) { } public void startNamespaceDeclScope ( int prefix , int uri ) { } public void endNamespaceDeclScope ( int prefix ) { } private String resolvePrefixToURI ( String prefix ) throws Exception { } public TraverseSchema ( Element root , StringPool stringPool , SchemaGrammar schemaGrammar , GrammarResolver grammarResolver , XMLErrorReporter errorReporter , String schemaURL , EntityResolver entityResolver ) throws Exception { } public TraverseSchema ( Element root , StringPool stringPool , SchemaGrammar schemaGrammar , GrammarResolver grammarResolver , XMLErrorReporter errorReporter , String schemaURL ) throws Exception { } public TraverseSchema ( Element root , StringPool stringPool , SchemaGrammar schemaGrammar , GrammarResolver grammarResolver ) throws Exception { } public void doTraverseSchema ( Element root , StringPool stringPool , SchemaGrammar schemaGrammar , GrammarResolver grammarResolver ) throws Exception { } private void checkTopLevelDuplicateNames ( Element root ) { } private void extractTopLevel3Components ( Element root ) { } private String expandSystemId ( String systemId , String currentSystemId ) throws Exception { } private static String fixURI ( String str ) { } private void traverseInclude ( Element includeDecl ) throws Exception { } private void traverseIncludedSchema ( Element root ) throws Exception { } private void traverseImport ( Element importDecl ) throws Exception { String location = importDecl . getAttribute ( ATT_SCHEMALOCATION ) ; InputSource source = null ; if ( ( fEntityResolver ) != null ) { source = fEntityResolver . resolveEntity ( "" , location ) ; } if ( source == null ) { location = expandSystemId ( location , fCurrentSchemaURL ) ; source = new InputSource ( location ) ; } else { if ( ( source . getPublicId ( ) ) != null ) location = source . getPublicId ( ) ; location += ',' + ( source . getSystemId ( ) ) ; } if ( fImportLocations . contains ( ( ( Object ) ( location ) ) ) ) { return ; } fImportLocations . addElement ( ( ( Object ) ( location ) ) ) ; String namespaceString = importDecl . getAttribute ( ATT_NAMESPACE ) ; SchemaGrammar importedGrammar = ( ( SchemaGrammar ) ( fGrammarResolver . getGrammar ( namespaceString ) ) ) ; if ( importedGrammar == null ) { importedGrammar = new SchemaGrammar ( ) ; } DOMParser parser = new DOMParser ( ) { public void ignorableWhitespace ( char [ ] ch , int start , int length ) { } public void ignorableWhitespace ( int dataIdx ) { } } ; parser . setEntityResolver ( new TraverseSchema . Resolver ( ) ) ; parser . setErrorHandler ( new TraverseSchema . ErrorHandler ( ) ) ; try { parser . setFeature ( "http:////xml.org//sax//features//validation" , false ) ; parser . setFeature ( "http:////xml.org//sax//features//namespaces" , true ) ; parser . setFeature ( "http:////apache.org//xml//features//dom//defer-node-expansion" , false ) ; } catch ( SAXNotRecognizedException e ) { e . printStackTrace ( ) ; } catch ( SAXNotSupportedException e ) { e . printStackTrace ( ) ; } try { parser . parse ( source ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( SAXException e ) { e . printStackTrace ( ) ; } Document document = parser . getDocument ( ) ; Element root = null ; if ( document != null ) { root = document . getDocumentElement ( ) ; } if ( root != null ) { String targetNSURI = root . getAttribute ( ATT_TARGETNAMESPACE ) ; if ( ! ( targetNSURI . equals ( namespaceString ) ) ) { reportGenericSchemaError ( ( ( ( ( ( ( "imported<seq2seq4repair_space>schema<seq2seq4repair_space>'" + location ) + "'<seq2seq4repair_space>has<seq2seq4repair_space>a<seq2seq4repair_space>different<seq2seq4repair_space>targetNameSpace<seq2seq4repair_space>'" ) + targetNSURI ) + "'<seq2seq4repair_space>from<seq2seq4repair_space>what<seq2seq4repair_space>is<seq2seq4repair_space>declared<seq2seq4repair_space>'" ) + namespaceString ) + "'." ) ) ; } else <START_BUG> new TraverseSchema ( root , fStringPool , importedGrammar , fGrammarResolver , fErrorReporter , location ) ; <END_BUG> } else { reportGenericSchemaError ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>get<seq2seq4repair_space>the<seq2seq4repair_space>doc<seq2seq4repair_space>root<seq2seq4repair_space>for<seq2seq4repair_space>imported<seq2seq4repair_space>Schema<seq2seq4repair_space>file:<seq2seq4repair_space>" + location ) ) ; } } private void traverseAnnotationDecl ( Element comment ) { } private int traverseSimpleTypeDecl ( Element simpleTypeDecl ) throws Exception { } private Element checkContent ( Element elm , Element content , boolean isEmpty ) throws Exception { } private DatatypeValidator findDTValidator ( Element elm , String baseTypeStr ) throws Exception { } private int traverseSimpleType ( Element simpleTypeDecl ) throws Exception { } private int traverseAny ( Element child ) throws Exception { } public DatatypeValidator getDatatypeValidator ( String uri , String localpart ) { } private XMLAttributeDecl traverseAnyAttribute ( Element anyAttributeDecl ) throws Exception { } private XMLAttributeDecl mergeTwoAnyAttribute ( XMLAttributeDecl oneAny , XMLAttributeDecl anotherAny ) { } int [ ] intersect2sets ( int [ ] one , int [ ] theOther ) { } private int traverseComplexTypeDecl ( Element complexTypeDecl ) throws Exception { } private void checkRecursingComplexType ( ) throws Exception { } private void checkParticleDerivationOK ( Element derivedTypeNode , Element baseTypeNode ) { } private int importContentSpec ( SchemaGrammar aGrammar , int contentSpecHead ) throws Exception { } private int expandContentModel ( int index , Element particle ) throws Exception { } private int traverseAttributeDecl ( Element attrDecl , TraverseSchema . ComplexTypeInfo typeInfo ) throws Exception { } private int addAttributeDeclFromAnotherSchema ( String name , String uriStr , TraverseSchema . ComplexTypeInfo typeInfo ) throws Exception { } private int traverseAttributeGroupDecl ( Element attrGrpDecl , TraverseSchema . ComplexTypeInfo typeInfo , Vector anyAttDecls ) throws Exception { } private int traverseAttributeGroupDeclFromAnotherSchema ( String attGrpName , String uriStr , TraverseSchema . ComplexTypeInfo typeInfo , Vector anyAttDecls ) throws Exception { } private Element findAttributeSimpleType ( Element attrDecl ) throws Exception { } private QName traverseElementDecl ( Element elementDecl ) throws Exception { } int getLocalPartIndex ( String fullName ) { } String getLocalPart ( String fullName ) { } int getPrefixIndex ( String fullName ) { } String getPrefix ( String fullName ) { } private void checkEquivClassOK ( Element elementDecl , Element equivClassElementDecl ) { }

Fix:
new TraverseSchema ( root , fStringPool , importedGrammar , fGrammarResolver , fErrorReporter , location , fEntityResolver ) ;