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

newInstance(String, ClassLoader): java.lang.JAXBException should not be wrapped as expected according to spec

    Details

    • Subcomponent:
    • Introduced In Build:
      b94
    • Introduced In Version:
      9
    • Resolved In Build:
      b104
    • Verification:
      Verified

      Description

      When:
      - invoking JAXBContext.newInstance(String, ClassLoader)
      - and when JAXB implementation is loaded through deprecated loading mechanism
      - and when its creaeCotenxt method throws JAXBException instance
      it's wrapped into another JAXBException which contradict the latest spec (not yet promoted):

          All RuntimeExceptions and JAXBExceptions thrown from provider's call are re-thrown, other exceptions are wrapped into an instance of JAXBException.

      spec: http://cr.openjdk.java.net/~mkos/8138699/specdiff.04/javax/xml/bind/JAXBContext.html

      The minimized testcase is attached.

        Attachments

          Activity

            People

            • Assignee:
              mkos Miroslav Kos (Inactive)
              Reporter:
              grakov Georgiy Rakov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: