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 56389 - Code completion doesn't work with arrays
Summary: Code completion doesn't work with arrays
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 15:41 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception's stacktrace (1.24 KB, text/plain)
2005-03-14 15:42 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-03-14 15:41:23 UTC
Try to write code:

String[] aa;
aa.

and invoke Code Completion.
It throws:

java.lang.ClassCastException: org.netbeans.jmi.javamodel.Array$Impl
org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:811)
org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:392)
...
Comment 1 ehucka 2005-03-14 15:42:41 UTC
Created attachment 20820 [details]
exception's stacktrace
Comment 2 Martin Matula 2005-03-14 15:57:43 UTC
Fixed.

Checking in src/org/netbeans/modules/editor/java/JMIUtils.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v  <-- 
JMIUtils.java
new revision: 1.21; previous revision: 1.20
done
Comment 3 ehucka 2005-05-04 11:38:48 UTC
v
Comment 4 Quality Engineering 2007-09-20 11:50:10 UTC
Reorganization of java component