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.
While just trying to get a code completion list to popup in a project. Got: java.lang.ClassCastException: org.netbeans.jmi.javamodel.Method$Impl at org.netbeans.modules.javacore.ClassIndex$ClassesByPrefixIterator.getClassesByPrefix (ClassIndex.java:437) at org.netbeans.modules.javacore.ClassIndex$ClassesByPrefixIterator.findNext(ClassIndex.java: 421) at org.netbeans.modules.javacore.ClassIndex$ClassesByPrefixIterator.hasNext(ClassIndex.java: 389) at org.netbeans.modules.javacore.LazyImmutableList.nextItem(LazyImmutableList.java:58) at org.netbeans.modules.javacore.LazyImmutableList.access$200(LazyImmutableList.java:30) at org.netbeans.modules.javacore.LazyImmutableList$LazyImmutableIterator.hasNext (LazyImmutableList.java:75) at org.netbeans.modules.editor.java.JMIUtils.findClasses(JMIUtils.java:329) at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveItem (NbJavaJMICompletionQuery.java:503) at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp (NbJavaJMICompletionQuery.java:397) at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult (NbJavaJMICompletionQuery.java:65) at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:145) at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:80) at org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query (JavaCompletionProvider.java:114) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run (AsyncCompletionTask.java:195) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Reorganization of java component
This issue is not valid in current builds any more. Java support was completely redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.