Project: JDT
Bug 135824 [misc] Binary nested type not at source position in unsorted Outline
Reported: 2006-04-10 05:23:23 | Status: resolved fixed

N20060410-0010 Have org.eclipse.jface imported as binary plug-in. Open java editor for binary class TreeSelection. In source, the nested class InitializeData is just before the constructors, but in the Outline, it appears at the very end. I guess the problem is that SourcePositionSorter#compare(..) returns 0 if parents are not identical. - Bug: should not test IJavaElement equality with != - Problem: IType InitializeData is a child of IType TreeSelection, but TreeSelection is not the parent of InitializeData (TreeSelection is only the declaring type of InitializeData).

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/SourcePositionSorter.java