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 46425 - Sudden ClassCastException when editing source file
Summary: Sudden ClassCastException when editing source file
Status: RESOLVED DUPLICATE of bug 45200
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 10:29 UTC by vtec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vtec 2004-07-22 10:29:44 UTC
In build 200407201800 when invoking code
completion in this context:

...
for(int i=0; i < masks.length; i++) {
  parsedSamples.add(new |<--- CTRL-SPACE
}
..


Annotation: Exception occurred in Request Processor
java.lang.ClassCastException
	at
org.netbeans.modules.javacore.ClassIndex.getClassesBySNPrefix(ClassIndex.java:573)
	at
org.netbeans.modules.editor.java.JMIUtils.findClasses(JMIUtils.java:282)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp(NbJavaJMICompletionQuery.java:261)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult(NbJavaJMICompletionQuery.java:52)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:146)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:79)
	at
org.netbeans.editor.ext.Completion.performQuery(Completion.java:594)
	at
org.netbeans.editor.ext.Completion.access$700(Completion.java:47)
	at
org.netbeans.editor.ext.Completion$1QueryTask.run(Completion.java:524)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Tomas Hurka 2004-07-26 10:37:09 UTC

*** This issue has been marked as a duplicate of 45200 ***
Comment 2 Quality Engineering 2007-09-20 12:12:04 UTC
Reorganization of java component