Project: JDT
Bug 399087 [push down] search Referencing problem in PushDownRefactoringProcessor
Reported: 2013-01-25 08:46:37 | Status: resolved fixed

the code in the method PushDownRefactoringProcessor.getReferencingElementsFromSameClass(): for (int j= 0; j < results.length; j++) { SearchMatch searchResult= results[i]; result.add(SearchUtils.getEnclosingJavaElement(searchResult)); } It seems results[i] should be results[j].

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java