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 96585 - Regression on 6.0 m7 - the code complemention does't work !
Summary: Regression on 6.0 m7 - the code complemention does't work !
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-26 14:39 UTC by dyegoleal
Modified: 2013-09-02 14:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dyegoleal 2007-02-26 14:39:45 UTC
In NetBeans 5.0... if you USE the unimported class... and use code complemention
it's work !!! is wonderfull !!! does't have an import of java.util.List to get
the  list of methods...

In NetBeans 6.0 m7  the code...

List<String> lst = (Control+Shift+Space) does not show anything... why ? why the
java.util.List is not imported....

if you import the java.util.List , smart lookup work...

Plase... make NetBeans more "smart" in this case...
Comment 1 Jiri Prox 2007-02-26 15:50:32 UTC
But there are more class named List in JDK and user can create another ones.
Which one should be imported in that case?

Now the smart CC (code completion) will work only if the type on the left side
is resolved. In the situation you've posted it will provide all variables of
type List and all methods returning List as well. If you use smart CC in
following code:
List<String> lst = new |
it will provide all classes implementing List (even when they are not imported yet)