You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/07/25 22:37:03 UTC
[Bug 2800] New: - DatatypeValidatorFactoryImpl will not compile
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: xerces-j-dev@xml.apache.org |
+ | Reported By: rsmudz@logicon.com |
+ | 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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org