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

    XMLWordPrintable

Details

    • b94
    • 9
    • b104
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: