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.
Summary: | com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: jar:file:/home/peter/dev/jfrog/Frog/JBase/lib/ext/JGraphT.jar!/org/jgrapht/graph/DirectedWeightedMultigraph.class class file contains | ||
---|---|---|---|
Product: | java | Reporter: | Marian Mirilovic <mmirilovic> |
Component: | Compiler | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | blocker | CC: | jglick, jmichelberger, mklaehn, zdenek.rod |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=37073 | ||
Issue Type: | DEFECT | Exception Reporter: | 37073 |
Bug Depends on: | |||
Bug Blocks: | 152191 | ||
Attachments: | stacktrace |
Description
Marian Mirilovic
2008-10-27 09:27:21 UTC
Strange. Do you have a reproducible test case? Build: NetBeans IDE Dev (Build 090730) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Linux, 2.6.28-14-generic, i386 User Comments: Built FindBugs as an autoproject. Stacktrace: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: class file contains wrong class: edu.umd.cs.findbugs.graph.AbstractDepthFirstSearch {1} Please remove or make sure it appears in the correct subdirectory of the classpath. at com.sun.tools.javac.jvm.ClassReader.badClassFile(ClassReader.java:288) at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1596) at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:1707) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1918) at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1843) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405) Created attachment 85560 [details]
stacktrace
This issue already has 13 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=37073 Are you able to reproduce it on your sources? I did not manage to reproduce. What I tried: svn co -r 11475 http://findbugs.googlecode.com/svn/trunk/findbugs rm -r nbproject Start 090730 (#fe6e63115575, cluster.config=basic) on a fresh userdir with JDK 6u14 on Ubuntu. Install Automatic Projects from Plugin Manager. New Project > Automatic Project, point to findbugs checkout. F11, accept 'build' as target. Wait for scanning to complete. A number of coupling errors are printed to console. S-F11, accept 'clean' as target. Scan occurs again (I don't know why). This issue already has 14 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=37073 May be caused by some problem in FastJar, I will evaluate. I am not able to reproduce it. It's very strange the ClassReader verifies that the class which it's loading has the expected name. There are three possibilities: 1) The class file contains different class - not very probable. 2) The ClassSymbol.classfile contains a reference to wrong JavaFileObject 3) The ClassReader consumed more data from ConstantPool and the pointer is pointing to the wrong (next) ConstantPool entry. I am not able to reproduce it either with guice or findbugs. Does anyone have the reproduceable test case? I've also tried to revert to #fe6e63115575, cluster.config=basic as Jesse suggested, unfortunately I was not able to built it (Mac). I've looked into the com.google.inject.binder.AnnotatedBindingBuilder which was causing this problem in the Jesee's case and it does not even contain reference to java.lang.Map. Seems neither #3 causes this problem. As mentioned above I am not able to reproduce it. If someone has a reproduceable test case (project refering to some jar causing this issue) please attach it and reopen. Thanks Happening to me repeatedly in Glassfish sources; see exception reporter. *** Bug 230767 has been marked as a duplicate of this bug. *** |