You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2001/05/15 18:32:47 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/validators/datatype DecimalDatatypeValidator.java

elena       01/05/15 09:32:46

  Modified:    java/src/org/apache/xerces/validators/datatype
                        DecimalDatatypeValidator.java
  Log:
  validator can pass empty string for comparison..
  
  Revision  Changes    Path
  1.25      +4 -1      xml-xerces/java/src/org/apache/xerces/validators/datatype/DecimalDatatypeValidator.java
  
  Index: DecimalDatatypeValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/validators/datatype/DecimalDatatypeValidator.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- DecimalDatatypeValidator.java	2001/05/09 18:29:08	1.24
  +++ DecimalDatatypeValidator.java	2001/05/15 16:32:38	1.25
  @@ -73,7 +73,7 @@
    * @author Ted Leung
    * @author Jeffrey Rodriguez
    * @author Mark Swinkles - List Validation refactoring
  - * @version $Id: DecimalDatatypeValidator.java,v 1.24 2001/05/09 18:29:08 elena Exp $
  + * @version $Id: DecimalDatatypeValidator.java,v 1.25 2001/05/15 16:32:38 elena Exp $
    */
   
   public class DecimalDatatypeValidator extends AbstractNumericValidator {
  @@ -98,6 +98,9 @@
           }
           catch ( NumberFormatException e ) {
               //REVISIT: should we throw exception??
  +            return -1;
  +        }
  +        catch ( Exception e){
               return -1;
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org