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 243024 - Use FindBugs compatible with JDK 1.8
Summary: Use FindBugs compatible with JDK 1.8
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal with 2 votes (vote)
Assignee: Petr Cyhelsky
Keywords: JDK_8
: 239633 (view as bug list)
Depends on:
Reported: 2014-03-18 20:21 UTC by Jesse Glick
Modified: 2014-07-17 02:17 UTC (History)
17 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208487

stacktrace (2.34 KB, text/plain)
2014-03-18 20:21 UTC, Jesse Glick
stacktrace (2.34 KB, text/plain)
2014-03-18 20:38 UTC, Jesse Glick
stacktrace (2.34 KB, text/plain)
2014-03-19 04:12 UTC, alied
stacktrace (3.31 KB, text/plain)
2014-03-19 13:24 UTC, peterhull90
stacktrace (3.31 KB, text/plain)
2014-03-20 21:45 UTC, Exceptions Reporter
stacktrace (2.34 KB, text/plain)
2014-03-24 13:27 UTC, alied
stacktrace (2.34 KB, text/plain)
2014-04-07 05:25 UTC, stefan79
stacktrace (3.31 KB, text/plain)
2014-04-08 11:01 UTC, Ralph Ruijs
stacktrace (2.99 KB, text/plain)
2014-04-29 17:21 UTC, alied

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2014-03-18 20:21:17 UTC
This bug was originally marked as duplicate of bug 235089, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20140317-eacabc97e7bc)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Linux

User Comments:
zdenek.rod: I open java file.

jglick: Just made a new project.

GUEST: Classpath scanning

java.lang.ArrayIndexOutOfBoundsException: 2560
   at org.objectweb.asm.ClassReader.readClass(
   at org.objectweb.asm.ClassReader.accept(
   at edu.umd.cs.findbugs.asm.FBClassReader.accept(
   at org.objectweb.asm.ClassReader.accept(
   at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(
   at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(
Comment 1 Jesse Glick 2014-03-18 20:21:19 UTC
Created attachment 146126 [details]
Comment 2 Jesse Glick 2014-03-18 20:38:52 UTC
Created attachment 146127 [details]

Looking at a Java class (-source 6).
Comment 3 Jesse Glick 2014-03-18 20:40:24 UTC
I am running a custom build of the FindBugs plugin, but I took care to include the purported fix of #235089 (by updating to current sources before applying my unrelated patch) and this still seems to happen. Also I am not using Java 8 sources at the moment.
Comment 4 alied 2014-03-19 04:12:01 UTC
Created attachment 146130 [details]

editing a javascript source file
Comment 5 Exceptions Reporter 2014-03-19 04:12:07 UTC
This bug already has 5 duplicates 
Comment 6 peterhull90 2014-03-19 13:24:11 UTC
Created attachment 146144 [details]

Using findbugs
Comment 7 Exceptions Reporter 2014-03-20 21:45:31 UTC
Created attachment 146195 [details]

Source -> Inspect -> Findbugs -> BANG!
Comment 8 Jesse Glick 2014-03-21 16:10:31 UTC
Of course this only happens when running under JDK 8.
Comment 9 alied 2014-03-21 16:15:16 UTC
(In reply to Jesse Glick from comment #8)
> Of course this only happens when running under JDK 8.

Although not using Java 8 sources, I'm using Java 8 to run the IDE and as default Java platform.
Comment 10 alied 2014-03-24 13:27:41 UTC
Created attachment 146272 [details]

just installed latest findbug plugin.
Comment 11 Exceptions Reporter 2014-03-24 13:27:47 UTC
This bug already has 10 duplicates 
Comment 12 stefan79 2014-04-07 05:25:38 UTC
Created attachment 146594 [details]

Exception occured after moving a junit-class to an other folder.
Comment 13 Ralph Ruijs 2014-04-08 11:01:41 UTC
Created attachment 146624 [details]

Tried to run FB on a simple java class
Comment 14 Ralph Ruijs 2014-04-08 11:12:10 UTC
Findbugs is not working when NetBeans is running on Java 8, increasing priority.
Comment 15 alied 2014-04-29 17:21:00 UTC
Created attachment 147011 [details]

executing a Findbugs inspection in a Java project.
The project is a Maven Jira plugin (<packaging>atlassian-plugin</packaging>)
Comment 16 witbrock 2014-05-14 15:45:18 UTC
Seems to happen when a new class is created, as well as when a file is opened by clicking on an exception link.
Comment 17 Petr Cyhelsky 2014-07-11 01:35:53 UTC
fixed in jet-main: 31957c9af780
Comment 18 Petr Cyhelsky 2014-07-11 02:11:01 UTC
*** Bug 239633 has been marked as a duplicate of this bug. ***
Comment 19 Quality Engineering 2014-07-17 02:17:55 UTC
Integrated into 'main-silver', will be available in build *201407170001* on (upload may still be in progress)

User: Petr Cyhelsky <>
Log: #243024 - Update findbugs library to version 3.0.0