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 86460 - IOE from CC if there is class in wrong file
Summary: IOE from CC if there is class in wrong file
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-10-04 14:08 UTC by Jiri Prox
Modified: 2007-01-17 10:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IOE (2.22 KB, text/plain)
2006-10-04 14:08 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-10-04 14:08:22 UTC
NetBeans IDE Dev (Build 061004)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

IOE is thrown while invoking CC if in current package, there is class located in
wrong file (e.g. the class name and filename do not match)

java.io.IOException
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:368)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:223)
...

Caused by: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file:
home/jp159440/NetBeansProjects/Erathosten/src/org/NewException.java
file does not contain class org.NewException
Please remove or make sure it appears in the correct subdirectory of the classpath.
	at com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:678)
...
Comment 1 Jiri Prox 2006-10-04 14:08:53 UTC
Created attachment 34863 [details]
IOE
Comment 2 Max Sauer 2006-10-23 09:30:54 UTC
Still reproducible. Increasing priority -> P2.

--
NetBeans IDE Dev (Build 061023)
1.6.0-rc; Java HotSpot(TM) 64-Bit Server VM 1.6.0-rc-b101
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
Comment 3 Dusan Balek 2006-10-26 12:32:47 UTC
Already fixed.
Comment 4 Jiri Prox 2006-10-27 11:01:46 UTC
verified