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 ;-)
UPDATE: I see there is a flag --illegal-access=permit so if you want to abuse Java, you can still go ahead ;-)
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...