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 145912 - JavaHints with setting "Warning on Current Line" are not displayed when caret is on current line
Summary: JavaHints with setting "Warning on Current Line" are not displayed when caret...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 105001 246494 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-02 13:23 UTC by Petr Dvorak
Modified: 2016-07-07 07:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-09-02 13:23:04 UTC
Product Version: NetBeans IDE Dev (Build 200809010201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)

Suppose you have following code and JavaDoc hits are displayed as "Warnings on Current Line":

//>>>>>>>
package javaaplication1;

public class NewClass {
    
   /*1*/p/*2*/ublic static int number(int i) {
            return i;
        }
}
//<<<<<<<<

(Where /*X*/ are just my markers - remove them when you paste the code).

When you place a caret to the position 1, no JavaDoc hint is shown, when you place it to position 2, hint is shown
correctly. I believe that when the option is called "Warning on Current Line", position 1 should work as well...

Maybe this issue is invalid and the behavior is as designed - in this case the option should be renamed. However, it
really is a minor issue...
Comment 1 Max Sauer 2008-09-02 13:48:17 UTC
Yes, it is as designed, but the design is awkward and this issue valid. The behavior is based on javac trees and their position inside source, so it should be 
probably renamed to 'warning on current tree', but that would not make sense for other languages. It should be redesigned somehow.
Comment 2 Jiri Prox 2008-09-02 14:18:24 UTC
*** Issue 105001 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Prox 2014-08-18 08:00:58 UTC
*** Bug 246494 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 07:17:13 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss