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 108745

Summary: Resolve type hint doesn't work properly
Product: java Reporter: Tomasz Slota <tslota>
Component: HintsAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: blocker Keywords: DUAL_MONITOR
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Hint description
code completion result items

Description Tomasz Slota 2007-07-03 12:29:22 UTC
Using NB 6 M10 on OS X.  

Steps to reproduce:
- create a new java file
- type "List list;" in the body of a method; List will be underlined as unresolved symbol
- Press Alt-Enter or click on the light bulb

Instead of a set of hints like "add import java.awt.List", "add import java.util.List", ... there is only one hint labeled with the error message 'cannot find 
symbol...'. Invoking it adds arbitrary import, there is no choice between classes with the same name located in different packages (but present on the class 
path)
Comment 1 Tomasz Slota 2007-07-03 12:36:39 UTC
Created attachment 44662 [details]
Hint description
Comment 2 Tomasz Slota 2007-07-03 12:37:21 UTC
Created attachment 44663 [details]
code completion result items
Comment 3 Tomasz Slota 2007-07-03 13:30:44 UTC
I have a similar situation with the unused imports hints: if I have 2 unused imports there should be hints like "remove xxx import" and "remove all imports", 
but there is only one hint labeled "unused import", which performs the former action.
Comment 4 Jan Lahoda 2007-07-03 14:23:27 UTC
It seems that the hints list popup has a zero width... .
Comment 5 Stanislav Aubrecht 2007-07-03 15:31:05 UTC
reproducible on win xp too
Comment 6 Stanislav Aubrecht 2007-07-03 16:34:39 UTC
fixed

/cvs/editor/hints/src/org/netbeans/modules/editor/hints/HintsUI.java,v  <--  HintsUI.java
new revision: 1.31; previous revision: 1.30