Project: JDT
Bug 203765 [search] occurrences search wrongly colors read as write access on same line
Reported: 2007-09-18 09:48:40 | Status: resolved fixed

I20070918-0010 Given (with colored labels enabled): public class Dummy { int field; { field= 1; field= field; //first is write, second is read System.out.println(field); } } 1. select 'field' 2. Search > Occurrences in File > Identifier => third entry in Search view renders both matches as write access, but the second one is a read access.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrenceMatch.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchLabelProvider.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchQuery.java