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 223726

Summary: Hint popup needs to be invoked several times
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2012-12-12 13:56:58 UTC
Sometimes the alt-enter must be pressed twice to show the hint popup.
This mostly happens when there are more hint at the same line.

Steps to reproduce:
1) enable split declaration and redundant cast hint
2) type:
String s = (String) "";
3) press alt-enter

-> in most cases nothing happens, the second pressing alt-enter opens the popup

Product Version: NetBeans IDE Dev (Build 201212120001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jan Lahoda 2012-12-13 19:18:04 UTC
Thank you for the test case. Fixed:
http://hg.netbeans.org/jet-main/rev/624f0255cd06
Comment 2 Quality Engineering 2012-12-14 02:45:33 UTC
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/624f0255cd06
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #223726: when the fixes popup is about to be shown, need to set the annotations synchronously.