Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2152 Weld build with JDK 9
  3. WELD-2155

FormatsTest in core-impl tests fails with JDK 9

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 2.4.0.CR1, 3.0.0.Alpha17
    • 3.0.0.Alpha16
    • None

    Description

      org.jboss.weld.tests.unit.util.reflection.FormatsTest fails with JDK 9. This test uses BCEL classes.

      The exception (which is caught and hidden in the code) is thrown upon reaching this line:

      class org.jboss.weld.util.reflection.Formats cannot access class com.sun.org.apache.bcel.internal.classfile.ClassParser (in module java.xml) because module java.xml does not export com.sun.org.apache.bcel.internal.classfile to unnamed module @345965f2
      

      It seems that in JDK 9 these classes were moved and/or their visibility/accessibility changed.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: