Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2300 Weld build on JDK 9 EA 148+
  3. WELD-2307

JDK 9 - investigate how reflection works with Jigsaw and whether it affects Weld

    XMLWordPrintable

Details

    Description

      We should start looking at JDK 9 (Jigsaw) and reflection. There will certainly be some obstacles due to modular system and strong encapsulation being enforced.

      We need to investigate if and how will such changes impair Weld.

      Some materials regarding JDK 9 and reflections:

      Known problems caused by reflection so far:

      • Pretty much any test run is impaired by reflection problem
        • Can be bypassed by adding --add-opens java.base/java.lang=ALL-UNNAMED as surefire VM args
        • What it does is that is opens package java.lang from module java.base into unnamed module which makes it accessible for reflection
        • Includes unit tests, tests-arquillian, tck runner, servlet tests, SE tests, ...
        • The real reason below is jboss class file writer making a reflective call into JDK

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: