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 217462 - Mark occurrences annotation is not visible on lines with debugger annotations
Summary: Mark occurrences annotation is not visible on lines with debugger annotations
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 224361 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-27 13:11 UTC by Egor Ushakov
Modified: 2016-07-07 07:17 UTC (History)
3 users (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 Egor Ushakov 2012-08-27 13:11:20 UTC
Steps to reproduce:
- set a breakpoint on any line (line background changes to red)
- start debug session and stop anywhere (current pc line background changes to green)
- click on any variable used in any of that two lines
Mark occurrences highlights usages of the variable but it is not visible on lines with debugger annotations.
Comment 1 Martin Entlicher 2013-06-13 13:30:06 UTC
The same problem is with hints. When there is a hint, the mark occurrences annotation is not visible.
IMHO mark occurrences should have the highest priority.
Comment 2 Jan Lahoda 2013-06-17 11:11:06 UTC
*** Bug 224361 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2014-07-03 13:58:31 UTC
The debugger annotation is placed in TOP rack, and therefore overrides any of mark-occurrences, which are placed in the SHOW_OFF_RACK

The mark occurrences is now also overriden by instant rename or instant refactoring highlights - which is IMHO correct, as the are even less short-lived than mark occurrences.

Milo - do you have any advice on how to order / distribute the competing highlighters among the racks ?
Comment 4 Miloslav Metelka 2014-07-07 13:23:49 UTC
The current ordering is imho ok although the whole system has of course this limitation of which highlight is more important than other.

One of the ways to solve this could be to allow color blending by using Color's alpha channel. At times when NB used to allow internal execution (I guess 3.5 or so :-) ) we supported alpha blending and actively used it as a default for marking of a line with a caret (making line's background slightly darker). With a graphical interface for colors customization in later NB versions this was no longer used.
On the other hand the color blending could produce unexpected color combinations - so this would have to be tested carefully first.
Comment 5 Martin Balin 2016-07-07 07:17:27 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