[ https://issues.apache.org/jira/browse/NETBEANS-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ludovic HOCHET closed NETBEANS-5147. ------------------------------------ Fix Version/s: Next Resolution: Fixed > JEP 396 present in JDK 16+28 / 17+1 causes IllegalAccessError > ------------------------------------------------------------- > > Key: NETBEANS-5147 > URL: https://issues.apache.org/jira/browse/NETBEANS-5147 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler, java - Source > Affects Versions: Next, 12.2 > Environment: Product Version = Apache NetBeans IDE DEV > (Build dev-81f31d3a342ab3d04e1e06f82a9733b71b56bb1a) (#81f31d3a342a) > Operating System = Windows 10 version 10.0 running on amd64 > Java; VM; Vendor = 17-internal; OpenJDK 64-Bit Server VM > 17-internal+1-adhoc.Ludovic.jdk; LH > Runtime = OpenJDK Runtime Environment > 17-internal+1-adhoc.Ludovic.jdk > Reporter: Ludovic HOCHET > Priority: Major > Fix For: Next > > Attachments: messages.log > > > With JDK 16+28 / 17+1 NetBeans is showing IllegalAccessError: > > {noformat} > java.lang.IllegalAccessError: superclass access check failed: class > org.netbeans.lib.nbjavac.services.CancelAbort (in unnamed module @0x1af58186) > cannot access class com.sun.tools.javac.util.Abort (in module jdk.compiler) > because module jdk.compiler does not export com.sun.tools.javac.util to > unnamed module @0x1af58186{noformat} > > Recompiling the JDK without the [JEP 396|https://openjdk.java.net/jeps/396] > commit removes the issue, so it seems a consequence of it. > Adding > {noformat} > -J--illegal-access=permit{noformat} > to netbeans_default_options in netbeans.conf restore the old behaviour. > > Or adding > {noformat} > -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED > -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED > -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED{noformat} > helps too. > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists