XML Duration getXMLSchemaType throws IllegalStateException

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 25
    • Component/s: xml
    • None

      Refer to JDK-6937964, from Bug6937964Test, the following code throws ISE:

                      Duration duration = datatypeFactory.newDurationYearMonth("P1Y");
                      try {
                          QName xmlSchemaType = duration.getXMLSchemaType();
                      } catch (IllegalStateException illegalStateException) {
                          // TODO; this test really should pass
                          System.err.println("Please fix this bug that is being ignored, for now: " + illegalStateException.getMessage());
                      }

            Assignee:
            Joe Wang
            Reporter:
            Joe Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: