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 - Resolve type hint doesn't work properly
Summary: Resolve type hint doesn't work properly
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: DUAL_MONITOR
Depends on:
Blocks:
 
Reported: 2007-07-03 12:29 UTC by Tomasz Slota
Modified: 2007-07-03 16:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hint description (18.27 KB, application/octet-stream)
2007-07-03 12:36 UTC, Tomasz Slota
Details
code completion result items (29.44 KB, application/octet-stream)
2007-07-03 12:37 UTC, Tomasz Slota
Details

Note You need to log in before you can comment on or make changes to this bug.
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