Community
Participate
Working Groups
Suppose we have the following class: public class SearchEngineTest { public void test() { System.out.println(); } }
My report seems to be missing it's end. Here is the rest: We search SearchEngineTest using: SearchEngine searchEngine = new SearchEngine(); searchEngine.search( workspace, SearchEngine.createSearchPattern("*", IJavaSearchConstants.FIELD, IJavaSearchConstants.REFERENCES, false), SearchEngine.createJavaSearchScope(new ICompilationUnit[] {compilationUnit}), resultCollector ); where compilationUnit is the compilation unit of the test class above and resultCollector is some implementation of IJavaSearchResultCollector. The accept() method of IJavaSearchResultCollector gets called with start and end indexes that identify 'System' and 'out' as referenced fields. 'out' is understandable but 'System' is not. Also, if we insert a space before 'out' in the SearchEngineTest class above, then this space is included in the range specified by the 'start' and 'end' parameters in the accept() method. Lance
Which build are you using? In latest integration build (I20030227), I see the correct source range reported for 'out' and 'System' is not reported as a match.
I'm using 200302061700 (on Mac)
Lance - Can you reproduce it on latest integration build ?
Nope. The latest integration build fixes it. Taa, Lance
Thanks, closing