nddelima    2004/06/28 10:09:49

  Modified:    java/src/org/apache/xerces/impl/dv/xs DateTimeDV.java
  Log:
  Patch for defect http://nagoya.apache.org/jira/browse/XERCESJ-987.
  
  Revision  Changes    Path
  1.8       +9 -2      xml-xerces/java/src/org/apache/xerces/impl/dv/xs/DateTimeDV.java
  
  Index: DateTimeDV.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/DateTimeDV.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DateTimeDV.java   24 Feb 2004 22:44:24 -0000      1.7
  +++ DateTimeDV.java   28 Jun 2004 17:09:49 -0000      1.8
  @@ -54,9 +54,16 @@
           int end = indexOf (str, 0, len, 'T');
   
           // both time and date
  -        getDate(str, 0, end, date);
  +        int dateEnd = getDate(str, 0, end, date);
           getTime(str, end+1, len, date, timeZone);
   
  +        //Check the separator character between Date and Time
  +        if (dateEnd != end) {
  +            throw new RuntimeException(str
  +                    + " is an invalid dateTime dataype value. "
  +                    + "Invalid character(s) seprating date and time values.");
  +        }
  +        
           //validate and normalize
   
           //REVISIT: do we need SchemaDateTimeException?
  
  
  

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

Reply via email to