hajdam opened a new issue, #8722:
URL: https://github.com/apache/netbeans/issues/8722

   ### Apache NetBeans version
   
   Apache NetBeans 27 latest release candidate
   
   ### What happened
   
   When using @SuppressWarnings annotation (without any braces parameter)
   ```
   Caused: java.lang.NullPointerException: Cannot read field "values" because 
"values" is null
        at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
        at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:765)
   ...
   ```
   
   
[java_1.dump.log](https://github.com/user-attachments/files/21702296/java_1.dump.log)
   
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   Start clean NetBeans 27-rc3
   File/New File
   Other/Java file
   File name: Test
   To static main method add annotation: @SuppressWarnings
   Save file
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 26
   
   ### Operating System
   
   Fedora 41 Linux version 6.15.9-101.fc41.x86_64 running on amd64; UTF-8;
   
   ### JDK
   
   Oracle JDK 17.0.15; Java HotSpot(TM) 64-Bit Server VM 17.0.15+9-LTS-24
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to