Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264876

XML Duration getXMLSchemaType throws IllegalStateException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • 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());
                      }

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

              Created:
              Updated: