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: * [Good StackOverflow question|http://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m/41265267] * [An article on sitepoint|https://www.sitepoint.com/reflection-vs-encapsulation-in-the-java-module-system/]
Known problems caused by reflection so far: * Unit tests failing ** 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 * tests-arquillian failing ** Same as above, need to open up package for reflection |
|