You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org> on 2009/01/09 20:30:02 UTC

[jira] Updated: (XMLBEANS-175) Validation of decimal in exponential representation fails

     [ https://issues.apache.org/jira/browse/XMLBEANS-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wing Yew Poon updated XMLBEANS-175:
-----------------------------------

    Fix Version/s:     (was: TBD)
                   Version 2.4 

Radu's fix is in 2.4.0.

> Validation of decimal in exponential representation fails
> ---------------------------------------------------------
>
>                 Key: XMLBEANS-175
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-175
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Validator
>    Affects Versions: Version 2
>            Reporter: Johannes Stamminger
>            Assignee: Radu Preotiuc-Pietro
>             Fix For: Version 2.4 
>
>         Attachments: TestExponent.jar, TestExponent.xsd, XMLBeansExponentTest.java
>
>
> Having an attribute of type xsd:decimal. Validating a document having set the attribute to "4.2E1" fails with error message "unexpected char '69'" (char '69' is the E). Value "42" works fine.
> Other XML parsers validate "4.2E1" successfully.
> Parsing fails in org.apache.xmlbeans.impl.values.JavaDecimalHolder#validateLexical(String, ValidationContext).
> BTW: according to my XML documentation, type xsd:decimal is "same as java.math.BigDecimal".
> If this info is correct: IMHO it would be better to rely the BigDecimal-parsing capability ... ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org