Skip to content

Tag: java-platform-module-system

Unable to make field final transient java.lang.Class java.util.EnumSet.elementType accessible: module java.base does not “opens java.util” to unnamed

I get this error when I run this test using JDK 17: I tried adding this to my pom.xml based on other answers: But when I build, I now get this error: Answer @Holger is right, you should not hack into JDK internals. He also explained correctly that –add-opens is not a valid Maven Compiler option. Because…