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

Summary: Regression on 6.0 m7 - the code complemention does't work !
Product: java Reporter: dyegoleal <dyegoleal>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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)