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 246494 - Utility class with visible constructor hint not working right.
Summary: Utility class with visible constructor hint not working right.
Status: RESOLVED DUPLICATE of bug 145912
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-16 13:54 UTC by MackSix
Modified: 2014-08-18 08:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java source file (342 bytes, text/plain)
2014-08-16 13:54 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-08-16 13:54:16 UTC
Created attachment 148729 [details]
Java source file

1. Open the attached java file "UtilityClassWithVisibleConstructor.java".
2. Enable the Hints "Utility class without constructor" and "Public constructor in non-public class" in Tools>>Options>>Editor>>Hints.
3. On line 6, notice that only the hint "Constructor is declared public in non-public class" is shown on the Hint tool tip when mouse is hovered over light bulb. 
4. On line 6, remove the public modifier keyword on the constructor.
5. On line 6, Add the public modifier keyword back on constructor.
6. On line 6, Hover mouse over Hint light bulb and notice the tool tip now includes "Utility class with visible constructor" is shown too.

Expected: Too tip "Utility class with visible constructor" should be visible in tool tip when file is opened. 


Product Version: NetBeans IDE 8.0.1 (Build 201408142300)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2014-08-18 08:00:58 UTC

*** This bug has been marked as a duplicate of bug 145912 ***