Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That will teach me to test on Java 8. Oh well. The whole point was it was a bad idea.

UPDATE: I see there is a flag --illegal-access=permit so if you want to abuse Java, you can still go ahead ;-)



Support for --illegal-access=permit was removed with Java 17.

But you can use "--add-opens=java.base/java.lang=ALL-UNNAMED" instead if you really want.

If you really want to shoot yourself in the foot. You can always go native...


OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=permit; support was removed in 17.0


Damn you guys/girls are fast.


As of Java 17, no longer. This option was intended as a migration path for badly behaving code, and as of today it no longer works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: