PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2800 *** shadow/2800 Wed Jul 25 13:37:03 2001 --- shadow/2800.tmp.6585 Wed Jul 25 13:37:03 2001 *************** *** 0 **** --- 1,68 ---- + +============================================================================+ + | DatatypeValidatorFactoryImpl will not compile | + +----------------------------------------------------------------------------+ + | Bug #: 2800 Product: Xerces-J | + | Status: NEW Version: 1.4.2 | + | Resolution: Platform: PC | + | Severity: Major OS/Version: Windows NT/2K | + | Priority: Other Component: Schema-Datatypes | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + DatatypeValidatorFactoryImpl will not compile with SDK + 1.3.1 due to error 'return validator; statement never reached'. This line is + part of createDatatypeValidator() and is around line 470. The method was fixed + it with the following: + + private static Object createDatatypeValidator(Constructor validatorConstructor, + Object[] arguments) throws InvalidDatatypeFacetException { + Object validator = null; + try { + validator = validatorConstructor.newInstance(arguments); + //return validator; + } + catch ( InstantiationException e ) { + if ( fDebug ) { + e.printStackTrace(); + } + //else { + // return null; + //} + } + catch ( IllegalAccessException e ) { + if ( fDebug ) { + e.printStackTrace(); + } + //else { + // return null; + //} + } + catch ( IllegalArgumentException e ) { + if ( fDebug ) { + e.printStackTrace(); + } + //else { + // return null; + //} + } + catch ( InvocationTargetException e ) { + if ( fDebug ) { + System.out.println("!! The original error message is: " + + e.getTargetException().getMessage() ); + e.getTargetException().printStackTrace(); + } + else { + throw new InvalidDatatypeFacetException( + e.getTargetException().getMessage() ); + } + } + finally + { + return validator; + } + } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
