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

javax.xml.bind classes in module java.xml.bind not intuitive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • core-libs

      While running a popular benchmark with b118, I got:

      Exception in thread "main" java.lang.NoClassDefFoundError:
      javax/xml/bind/JAXBException

      due to new Jigsaw modulariazation changes. I would expect that the module would be javax.xml.bind, so I tried

      -addmods javax.xml.bind

      but actually the module is:

      -addmods java.xml.bind

      This seems like bad usability, the javax.* classes have been in java for many years, why change the name of it in Jigsaw?
      To me this is a bug unless there is good documentation or a better error message for javax vs java.

            Unassigned Unassigned
            ecaspole Eric Caspole
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: