This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267380

Summary: [newcodemodel] ArrayIndexOutOfBoundsException: 283
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: PolesApart
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225542
Attachments: stacktrace

Description Exceptions Reporter 2016-08-01 13:52:38 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Linux

User Comments:
GUEST: ArrayIndexOutOfBoundsException: 283




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 283
   at java.lang.Integer.valueOf(Integer.java:831)
   at org.netbeans.modules.cnd.apt.support.lang.APTBaseLanguageFilter.onID(APTBaseLanguageFilter.java:124)
   at org.netbeans.modules.cnd.apt.support.lang.APTBaseLanguageFilter.onToken(APTBaseLanguageFilter.java:145)
   at org.netbeans.modules.cnd.apt.support.lang.APTBaseLanguageFilter$FilterStream.nextToken(APTBaseLanguageFilter.java:159)
   at org.netbeans.modules.cnd.antlr.TokenBuffer.<init>(TokenBuffer.java:67)
   at org.netbeans.modules.cnd.antlr.LLkParser.<init>(LLkParser.java:33)
Comment 1 Exceptions Reporter 2016-08-01 13:52:40 UTC
Created attachment 161514 [details]
stacktrace
Comment 2 Vladimir Kvashin 2016-09-08 16:22:24 UTC
Looks like a JVM (JIT?)bug? I tried to find such a bug, but wasn't able to find it; on the other hand I can't file it against jvm/jdk since I have no idea how to reproduce this.

A little bit similar although different story can be found here
http://stackoverflow.com/questions/25942010/how-is-arrayoutofboundsexception-possible-in-string-valueofint
Comment 3 Vladimir Voskresensky 2016-09-09 14:38:08 UTC
We need a test case, changing status to incomplete