Closed jtaafri closed 1 year ago
take a look at the –illegal-access=permit option in java 9
https://docs.oracle.com/javase/9/tools/java.htm#JSWOR624
but probably java10 means bad things
Yeah, it is weird. I have tried that option and still get an exception here.
On Mon, Mar 12, 2018 at 10:02 PM, Dave Brosius notifications@github.com wrote:
take a look at the –illegal-access=permit option in java 9
https://docs.oracle.com/javase/9/tools/java.htm#JSWOR624
but probably java10 means bad things
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jbellis/jamm/issues/29#issuecomment-372521468, or mute the thread https://github.com/notifications/unsubscribe-auth/AjlYkHu5WzMFpugY0QotYU5ZoUDcGZjnks5tdyjBgaJpZM4Snrd7 .
Are you using classpath or modules?
My project does not contain any modules.
On Wed, Mar 14, 2018 at 10:57 PM, Dave Brosius notifications@github.com wrote:
Are you using classpath or modules?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jbellis/jamm/issues/29#issuecomment-373244591, or mute the thread https://github.com/notifications/unsubscribe-auth/AjlYkBcyBObdAx1VVxxCIlwVQKTR0setks5tediegaJpZM4Snrd7 .
See https://stackoverflow.com/a/41265267/9046139 for a solution.
Basically you need to "open" the failing modules to unnamed ones (i.e. jamm). The solution must be adapted for each module that fails.
We have changed the code to ensure that Jamm can work even without the add-opens.
This exception is thrown when running on Java 9. It is thrown in
addFieldChildren
when trying to access private fields:Is there any way around this in Java 9?