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 233329

Summary: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: package-info.class class file contains wrong class: org.junit.package-info Please remove or make sure it appears in the correct su
Product: java Reporter: rmoquin <rmoquin>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal CC: abien, emiddio, ferpeter, gtzabari, mwaller, NukemBy, rodriguez, tipirneni, zdenek.rod
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 202473
Attachments: stacktrace
stacktrace
stacktrace

Description rmoquin 2013-07-24 14:52:03 UTC
This bug was originally marked as duplicate of bug 151419, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
rmoquin: I've been getting mostly OSGi related exceptions when starting up, I decided to hold off on sending those, this one here came up on startup... not sure which project, but all the projects I have loaded are maven projects.




Stacktrace: 
com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: package-info.class
  class file contains wrong class: org.junit.package-info
  Please remove or make sure it appears in the correct subdirectory of the classpath.
   at com.sun.tools.javac.jvm.ClassReader.badClassFile(ClassReader.java:353)
   at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2185)
   at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2296)
   at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2518)
   at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2438)
   at com.sun.tools.javac.code.Symbol.complete(Symbol.java:437)
Comment 1 rmoquin 2013-07-24 14:52:04 UTC
Created attachment 137710 [details]
stacktrace
Comment 2 Exceptions Reporter 2013-11-13 19:18:26 UTC
Created attachment 142152 [details]
stacktrace

not sure
Comment 3 Exceptions Reporter 2014-02-03 13:52:16 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202473
Comment 4 abien 2015-02-26 15:45:58 UTC
Created attachment 152258 [details]
stacktrace

Happened during browsing code
Comment 5 Dusan Balek 2015-02-26 16:01:00 UTC
Already fixed in jet-main.

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