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 248045 - com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: package-info.class unable to access file: Stream closed Please remove or make sure it appears in the correct subdirectory of the c
Summary: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: package-inf...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 233329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-20 12:40 UTC by volatile
Modified: 2015-02-26 16:01 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211520


Attachments
stacktrace (10.59 KB, text/plain)
2014-10-20 12:40 UTC, volatile
Details
stacktrace (9.77 KB, text/plain)
2014-11-14 11:30 UTC, Alexander Simon
Details
stacktrace (9.38 KB, text/plain)
2014-12-10 22:55 UTC, _ tboudreau
Details
stacktrace (9.38 KB, text/plain)
2014-12-18 14:23 UTC, Jiri Skrivanek
Details
stacktrace (7.92 KB, text/plain)
2015-01-28 18:06 UTC, Alexander Simon
Details
stacktrace (9.09 KB, text/plain)
2015-01-30 08:46 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description volatile 2014-10-20 12:40:52 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
GUEST: Just editing files

GUEST: opening the netbeans

GUEST: <Please provide a description of the problem or the steps to reproduce>

volatile: IDE, refactoring code

GUEST: 1

GUEST: Just opened NetBeans

GUEST: Copy-paste a class source

GUEST: I dont know

FrantaM: opened file com.sun.net.httpserver.HttpServer

GUEST: Added a new JAR-File to the souce class path.

emiddio: unknown

GUEST: Typing




Stacktrace: 
com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: package-info.class
  unable to access file: Stream closed
  Please remove or make sure it appears in the correct subdirectory of the classpath.
   at com.sun.tools.javac.jvm.ClassReader.badClassFile(ClassReader.java:360)
   at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2598)
   at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2484)
   at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:77)
   at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:244)
   at com.sun.tools.javac.code.Symbol.complete(Symbol.java:577)
Comment 1 volatile 2014-10-20 12:40:53 UTC
Created attachment 150001 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-11-07 12:54:39 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211520
Comment 3 Alexander Simon 2014-11-14 11:30:52 UTC
Created attachment 150480 [details]
stacktrace

build in console
Comment 4 _ tboudreau 2014-12-10 22:55:28 UTC
Created attachment 151030 [details]
stacktrace

Something trying to compile package-info.javas?
Comment 5 Jiri Skrivanek 2014-12-18 14:23:27 UTC
Created attachment 151172 [details]
stacktrace

I cleaned repository while module is opened in IDE.
Comment 6 Alexander Simon 2015-01-28 18:06:58 UTC
Created attachment 151714 [details]
stacktrace

build in console
Comment 7 Alexander Simon 2015-01-30 08:46:00 UTC
Created attachment 151738 [details]
stacktrace

build in console
Comment 9 Quality Engineering 2015-02-17 04:42:59 UTC
Integrated into 'main-silver', will be available in build *201502170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c4f5cda52321
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #249794, #249816, and #248045 fixed.
Comment 10 Dusan Balek 2015-02-26 16:01:00 UTC
*** Bug 233329 has been marked as a duplicate of this bug. ***