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

XML Duration getXMLSchemaType throws IllegalStateException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: xml
    • Labels:
      None
    • Subcomponent:

      Description

      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());
                      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: