typetools / typetools/checker-framework
NullnessChecker fails in NetBeans 16 running om Windows 11
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 440
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 134
Description
Followed instructions in "37.13.1 Adding a checker via the Project Properties window" to add "org.checkerframework.checker.nullness.NullnessChecker" to the project.
According to NetBeans Help -> About, environment is as follows (with some redacting):
Product Version: Apache NetBeans IDE 16
Java: 19.0.1; Java HotSpot(TM) 64-Bit Server VM 19.0.1+10-21
Runtime: Java(TM) SE Runtime Environment 19.0.1+10-21
System: Windows 11 version 10.0 running on amd64; UTF-8; en_US (nb)
User directory: C:\Users<redacted>\AppData\Roaming\NetBeans\16
Cache directory: C:\Users<redacted>\AppData\Local\NetBeans\Cache\16
Ran the project build with following result:
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.IllegalAccessError: class org.checkerframework.javacutil.AbstractTypeProcessor (in unnamed module @0x6536e911) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x6536e911
at org.checkerframework.javacutil.AbstractTypeProcessor.init(AbstractTypeProcessor.java:97)
at org.checkerframework.framework.source.SourceChecker.init(SourceChecker.java:543)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.(JavacProcessingEnvironment.java:696)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:823)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:919)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1262)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1377)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:916)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:50)
BUILD FAILED (total time: 0 seconds)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the NetBeans 16 build with NullnessChecker on Java 19 and review the failure at org.checkerframework.javacutil.AbstractTypeProcessor.init, especially AbstractTypeProcessor.java:97. Compare the NetBeans Project Properties setup with the module-access requirements shown by the stack trace. Done means the configured checker runs without the IllegalAccessError in the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100