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

   ### Apache NetBeans version
   
   Apache NetBeans 27
   
   ### What happened
   
   got this exception today:
   
   ```
   java.lang.NumberFormatException: For input string: "-1,-1"
        at 
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
        at java.base/java.lang.Integer.parseInt(Integer.java:565)
        at java.base/java.lang.Integer.parseInt(Integer.java:662)
        at 
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.loadErrors(TaskCache.java:318)
        at 
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.getErrors(TaskCache.java:151)
        at 
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.isInError(TaskCache.java:398)
        at 
org.netbeans.modules.parsing.ui.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:286)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
   [catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
   
   ```
   
   
https://github.com/apache/netbeans/blob/6befb3034d31fe2f336ce02e3e248645c64f337f/ide/parsing.indexing/src/org/netbeans/modules/parsing/impl/indexing/errors/TaskCache.java#L313-L320
   
   looks like the regex can't match negative numbers and if it doesn't match, 
it automatically assumes it is a single integer value and parses it.
   
   https://github.com/apache/netbeans/pull/8206
   
   
   
   
   ### Language / Project Type / NetBeans Component
   
   java ant project (netbeans)
   
   ### How to reproduce
   
   unknown. But this seems to indicate it is a regular compiler error but 
without range set.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   linux
   
   ### JDK
   
   25
   
   ### 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