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 68400 - ClassCastException in autocompletion with self defined Object-Arrays
Summary: ClassCastException in autocompletion with self defined Object-Arrays
Status: RESOLVED DUPLICATE of bug 68695
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 64865 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-09 16:40 UTC by shopi
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 shopi 2005-11-09 16:40:20 UTC
java.lang.ClassCastException: org.netbeans.jmi.javamodel.JavaPackage$Impl
	at org.netbeans.modules.editor.java.JMIUtils.getImportedClass
(JMIUtils.java:493)
	at 
org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.getTypeFromName
(NbJavaJMISyntaxSupport.java:373)
	at 
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveItem
(NbJavaJMICompletionQuery.java:499)
	at 
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp
(NbJavaJMICompletionQuery.java:258)
	at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult
(NbJavaJMICompletionQuery.java:57)
	at org.netbeans.editor.ext.java.JavaCompletionQuery.query
(JavaCompletionQuery.java:139)
	at org.netbeans.editor.ext.java.JavaCompletionQuery.query
(JavaCompletionQuery.java:74)
	at org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query
(JavaCompletionProvider.java:89)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run
(AsyncCompletionTask.java:181)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:870)
Comment 1 Miloslav Metelka 2005-11-09 16:46:00 UTC
Downgrading to P2 as this is from completion query and it does not qualify as P1
issue. If possible could you please attach the source to this issue? Thanks.
Comment 2 Miloslav Metelka 2005-11-09 16:47:02 UTC
I've meant the java source file that you've been editing. Is this random or does
it happen consistently on that particular file?
Comment 3 Dusan Balek 2005-11-10 08:24:19 UTC
*** Issue 64865 has been marked as a duplicate of this issue. ***
Comment 4 Tomas Hurka 2005-11-14 13:19:02 UTC
This does not look like P2. This happens on specific source code. It would be great if you can attach this 
source code where it happened. 
Comment 5 Jan Becicka 2005-11-28 13:56:28 UTC

*** This issue has been marked as a duplicate of 68695 ***
Comment 6 Quality Engineering 2007-09-20 10:03:12 UTC
Reorganization of java component