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 233011

Summary: ArrayIndexOutOfBoundsException: 8963
Product: java Reporter: Jiri Prox <jiriprox>
Component: FindBugsAssignee: Petr Cyhelsky <cyhelsky>
Status: RESOLVED DUPLICATE    
Severity: normal CC: MackSix, zdenek.rod
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 200727
Attachments: stacktrace
stacktrace
Run FindBugs on this JDK 8 project.

Description Jiri Prox 2013-07-18 15:09:57 UTC
Build: NetBeans IDE Dev (Build 201307150106)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b40, Java(TM) SE Runtime Environment, 1.8.0-ea-b98
OS: Windows 7

User Comments:
zdenek.rod: I run manven goal.

jiriprox: AIOOBE when running findbug analysis




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 8963
   at org.objectweb.asm.ClassReader.readClass(ClassReader.java:0)
   at org.objectweb.asm.ClassReader.accept(ClassReader.java:0)
   at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
   at org.objectweb.asm.ClassReader.accept(ClassReader.java:0)
   at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:106)
   at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:492)
Comment 1 Jiri Prox 2013-07-18 15:09:59 UTC
Created attachment 137393 [details]
stacktrace
Comment 2 Jan Lahoda 2013-07-18 20:13:35 UTC
Is there a way for me to reproduce? With a way to reproduce, I unfortunately don't see much chances for this to be fixed.
Comment 3 Petr Cyhelsky 2013-07-31 14:57:51 UTC
changing owner
Comment 4 Jan Lahoda 2013-08-05 08:51:01 UTC
Happened to me too. In my case, the reason was that 1.8 classfiles (e.g. java/lang/CharSequence.class from 1.8.0-b100) was being analyzed, but the version of ASM used probably does not understand it properly.
Comment 5 MackSix 2013-08-10 00:35:16 UTC
Created attachment 138523 [details]
stacktrace

1. Using Findbugs on TS Formattnig project that uses JDK 8.
Comment 6 MackSix 2013-08-10 00:38:46 UTC
(In reply to comment #2)
> Is there a way for me to reproduce? With a way to reproduce, I unfortunately
> don't see much chances for this to be fixed.

Yup, run FindBugs on attached "Format" project. 

I am running NetBeans on jdk1.7.0_40-ea-b38 and the project is using JDK 8 build b102.
Comment 7 MackSix 2013-08-10 00:40:18 UTC
Created attachment 138524 [details]
Run FindBugs on this JDK 8 project.
Comment 8 Petr Cyhelsky 2014-02-24 13:26:04 UTC

*** This bug has been marked as a duplicate of bug 235089 ***