Buggy code:
static class Resolver implements EntityResolver { private static final String [ ] SYSTEM = new String [ ] { "http:////www.w3.org//TR//2000//WD-xmlschema-1-20000407//structures.dtd" , "http:////www.w3.org//TR//2000//WD-xmlschema-1-20000407//datatypes.dtd" , "http:////www.w3.org//TR//2000//WD-xmlschema-1-20000407//versionInfo.ent" } ; private static final String [ ] PATH = new String [ ] { "structures.dtd" , "datatypes.dtd" , "versionInfo.ent" } ; private DefaultEntityHandler fEntityHandler ; public Resolver ( DefaultEntityHandler handler ) { } public InputSource resolveEntity ( String publicId , String systemId ) throws IOException , SAXException { } } static class ErrorHandler implements org . xml . sax . ErrorHandler { public void warning ( SAXParseException ex ) { } public void error ( SAXParseException ex ) { } public void fatalError ( SAXParseException ex ) { } private String getLocationString ( SAXParseException ex ) { } } private int attributeTypeName ( XMLAttributeDecl attrDecl ) { } private void validateElementAndAttributes ( QName element , XMLAttrList attrList ) throws Exception { } private void validateDTDattribute ( QName element , int attValue , XMLAttributeDecl attributeDecl ) throws Exception { } private void charDataInContent ( ) { } private int checkContent ( int elementIndex , QName [ ] children , int childOffset , int childCount ) throws Exception { final int elementType = fCurrentElement . rawname ; if ( XMLValidator . DEBUG_PRINT_CONTENT ) { String strTmp = fStringPool . toString ( elementType ) ; System . out . println ( ( ( ( ( ( ( ( "Name:<seq2seq4repair_space>" + strTmp ) + ",<seq2seq4repair_space>" ) + "Count:<seq2seq4repair_space>" ) + childCount ) + ",<seq2seq4repair_space>" ) + "ContentSpecType:<seq2seq4repair_space>" ) + ( fCurrentContentSpecType ) ) ) ; for ( int index = childOffset ; ( index < ( childOffset + childCount ) ) && ( index < 10 ) ; index ++ ) { if ( index == 0 ) { System . out . print ( "<seq2seq4repair_space>(" ) ; } String childName = ( ( children [ index ] . localpart ) == ( - 1 ) ) ? "#PCDATA" : fStringPool . toString ( children [ index ] . localpart ) ; if ( ( index + 1 ) == childCount ) { System . out . println ( ( childName + ")" ) ) ; } else if ( ( index + 1 ) == 10 ) { System . out . println ( ( childName + ",...)" ) ) ; } else { System . out . print ( ( childName + "," ) ) ; } } } final int contentType = fCurrentContentSpecType ; if ( contentType == ( XMLElementDecl . TYPE_EMPTY ) ) { if ( childCount != 0 ) { return 0 ; } } else if ( contentType == ( XMLElementDecl . TYPE_ANY ) ) { } else if ( ( contentType == ( XMLElementDecl . TYPE_MIXED ) ) || ( contentType == ( XMLElementDecl . TYPE_CHILDREN ) ) ) { XMLContentModel cmElem = null ; try { cmElem = getElementContentModel ( elementIndex ) ; int result = cmElem . validateContent ( children , childOffset , childCount ) ; if ( ( result != ( - 1 ) ) && ( fGrammarIsSchemaGrammar ) ) { EquivClassComparator comparator = new EquivClassComparator ( fGrammarResolver , fStringPool ) ; cmElem . setEquivClassComparator ( comparator ) ; result = cmElem . validateContentSpecial ( children , childOffset , childCount ) ; } return result ; } catch ( CMException excToCatch ) { int majorCode = excToCatch . getErrorCode ( ) ; fErrorReporter . reportError ( fErrorReporter . getLocator ( ) , XERCES_IMPLEMENTATION_DOMAIN , majorCode , 0 , null , ERRORTYPE_FATAL_ERROR ) ; } } else if ( contentType == ( - 1 ) ) { reportRecoverableXMLError ( MSG_ELEMENT_NOT_DECLARED , VC_ELEMENT_VALID , elementType ) ; } else if ( contentType == ( XMLElementDecl . TYPE_SIMPLE ) ) { XMLContentModel cmElem = null ; if ( childCount > 0 ) { fErrorReporter . reportError ( fErrorReporter . getLocator ( ) , SCHEMA_DOMAIN , DatatypeError , MSG_NONE , new Object [ ] { ( ( "In<seq2seq4repair_space>element<seq2seq4repair_space>'" + ( fStringPool . toString ( elementType ) ) ) + "'<seq2seq4repair_space>:<seq2seq4repair_space>" ) + "Can<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>element<seq2seq4repair_space>children<seq2seq4repair_space>within<seq2seq4repair_space>a<seq2seq4repair_space>simple<seq2seq4repair_space>type<seq2seq4repair_space>content" } , ERRORTYPE_RECOVERABLE_ERROR ) ; } else { try { fGrammar . getElementDecl ( elementIndex , fTempElementDecl ) ; DatatypeValidator dv = fTempElementDecl . datatypeValidator ; if ( ( fXsiTypeValidator ) != null ) { dv = fXsiTypeValidator ; fXsiTypeValidator = null ; } if ( dv == null ) { System . out . println ( ( ( ( ( "Internal<seq2seq4repair_space>Error:<seq2seq4repair_space>this<seq2seq4repair_space>element<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>simpletype<seq2seq4repair_space>" + "but<seq2seq4repair_space>no<seq2seq4repair_space>datatypevalidator<seq2seq4repair_space>was<seq2seq4repair_space>found,<seq2seq4repair_space>element<seq2seq4repair_space>" ) + ( fTempElementDecl . name ) ) + ",locapart:<seq2seq4repair_space>" ) + ( fStringPool . toString ( fTempElementDecl . name . localpart ) ) ) ) ; } else { dv . validate ( fDatatypeBuffer . toString ( ) , null ) ; } } catch ( InvalidDatatypeValueException idve ) { <START_BUG> fErrorReporter . reportError ( fErrorReporter . getLocator ( ) , SCHEMA_DOMAIN , DatatypeError , MSG_NONE , new Object [ ] { idve . getMessage ( ) } , ERRORTYPE_RECOVERABLE_ERROR ) ; <END_BUG> } } } else { fErrorReporter . reportError ( fErrorReporter . getLocator ( ) , XERCES_IMPLEMENTATION_DOMAIN , VAL_CST , 0 , null , ERRORTYPE_FATAL_ERROR ) ; } return - 1 ; } private void printChildren ( ) { } private void printStack ( ) { } public interface AttributeValidator { public int normalize ( QName element , QName attribute , int attValue , int attType , int enumHandle ) throws Exception { } } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } final class AttValidatorNOTATION implements XMLValidator . AttributeValidator { public int normalize ( QName element , QName attribute , int attValueHandle , int attType , int enumHandle ) throws Exception { } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } } final class AttValidatorENUMERATION implements XMLValidator . AttributeValidator { public int normalize ( QName element , QName attribute , int attValueHandle , int attType , int enumHandle ) throws Exception { } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } } }

Fix:
fErrorReporter . reportError ( fErrorReporter . getLocator ( ) , SCHEMA_DOMAIN , DatatypeError , MSG_NONE , new Object [ ] { ( ( "In<seq2seq4repair_space>element<seq2seq4repair_space>'" + ( fStringPool . toString ( elementType ) ) ) + "'<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( idve . getMessage ( ) ) } , ERRORTYPE_RECOVERABLE_ERROR ) ;