XmlDate.Factory.parse(java.lang.String ) is broken
--------------------------------------------------
Key: XMLBEANS-454
URL: https://issues.apache.org/jira/browse/XMLBEANS-454
Project: XMLBeans
Issue Type: Bug
Affects Versions: Version 2.5
Reporter: Mark Grand
This program
import org.apache.xmlbeans.XmlDate;
public class Z {
public static void main(String[] argv) throws Exception {
XmlDate.Factory.parse("2011-04-20");
}
}
Throws this exception:
Exception in thread "main" org.apache.xmlbeans.XmlException: error: Unexpected
element: CDATA
at
org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)
at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)
at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)
at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
at org.apache.xmlbeans.XmlDate$Factory.parse(XmlDate.java:104)
at Z.main(Z.java:6)
Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
at
org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at
org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
... 6 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]