mrglavas    2005/06/13 14:57:00

  Modified:    java/src/org/apache/xerces/jaxp/validation
                        ValidatorHandlerImpl.java
  Log:
  Provide error message for TypeInfoProvider illegal state.
  
  Revision  Changes    Path
  1.2       +4 -3      
xml-xerces/java/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
  
  Index: ValidatorHandlerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ValidatorHandlerImpl.java 13 Jun 2005 21:25:07 -0000      1.1
  +++ ValidatorHandlerImpl.java 13 Jun 2005 21:57:00 -0000      1.2
  @@ -833,7 +833,8 @@
            */
           private void checkState() {
               if( !fInStartElement ) {
  -                throw new IllegalStateException();
  +                throw new 
IllegalStateException(JAXPValidationMessageFormatter.formatMessage(Locale.getDefault(),
 
  +                        "TypeInfoProviderIllegalState", null));
               }
           }
           
  @@ -942,7 +943,7 @@
           // Data
           //
   
  -        /** XML 1.0 type constant according to DOM L3 LS CR spec 
"http://www.w3.org/TR/2003/CR-DOM-Level-3-LS-20031107"; */
  +        /** XML 1.0 type constant according to DOM L3 LS REC spec 
"http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/"; */
           private static final String XML_TYPE = 
"http://www.w3.org/TR/REC-xml";;
   
           /** The DOM entity resolver. */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to