Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-454

XmlDate.Factory.parse(java.lang.String ) is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Version 2.5
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgrand Mark Grand
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: