clojure-java-9 icon indicating copy to clipboard operation
clojure-java-9 copied to clipboard

.setAccessible fails on non-open classes as of 9-ea+148

Open tobias opened this issue 9 years ago • 0 comments

As of 9-ea+148, you can no longer .setAccessible on private/protected methods if the class isn't in a package that has been opened to the application's module. The workaround is to use the --add-opens option:

java --add-opens java.base/java.net=ALL-UNNAMED ...

See #AwkwardStrongEncapsulation for more details.

tobias avatar Dec 09 '16 22:12 tobias