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 253277

Summary: [newcodemodel] ArrayIndexOutOfBoundsException: 15
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: Code ModelAssignee: issues@cnd <issues>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218275
Attachments: stacktrace

Description Vladimir Kvashin 2015-07-01 10:55:25 UTC
Build: NetBeans IDE Dev (Build 20150701-2446dba26d5d)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.71-b01, Java(TM) SE Runtime Environment, 1.7.0_71-b14
OS: Linux

User Comments:
vkvashin: started IDE with 
-J-Dapt.use.clank=true -J-Dapt.always.use.filesystem=true
created a new file, edited it - exception occurred




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 15
   at org.clank.support.aliases.char$ptr$array.$at(char.java:69)
   at org.llvm.support.MemoryBuffer.init(MemoryBuffer.java:85)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankMemoryBufferImpl.<init>(ClankMemoryBufferImpl.java:76)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankMemoryBufferImpl.create(ClankMemoryBufferImpl.java:71)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankDriverImpl.getRemappedBuffers(ClankDriverImpl.java:384)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankDriverImpl.preprocessImpl(ClankDriverImpl.java:147)
Comment 1 Vladimir Kvashin 2015-07-01 10:55:26 UTC
Created attachment 154455 [details]
stacktrace
Comment 2 Alexander Simon 2015-09-07 17:36:28 UTC
too old code
Comment 3 Vladimir Kvashin 2015-09-08 09:14:41 UTC
Agreed. And it seems it does not repeat.