7.1 HR Integration Review: #205774: Incorrect annotation marks

Jan Lahoda <[email protected]> Fri, 02 Dec 2011 13:32:00 +0100
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
http://netbeans.org/bugzilla/show_bug.cgi?id=205774

Description:
org.netbeans.editor.Annotations.getLineAnnotations may return 
LineAnnotations for a different line than specified, due to an internal 
cache. This leads to an incorrectly placed annotation in some cases.

Fix:
Ensure that when returning cache-based value, the LineAnnotations belong 
to the correct line, falling back to the standard binary search if it 
does not.

Risk: minimal.

Changeset:
http://hg.netbeans.org/jet-main/rev/337b947a2692
release71:
http://hg.netbeans.org/releases/rev/a03ccf7e25a4

Fix reviewed by mmetelka.

Thanks,
    Jan