Skip to content

Commit 58d58a3

Browse files
mickaelistriarobstryker
authored andcommitted
JavacTypeBinding.getDeclaredMethods() order
Put implicit methods (eg constructors) first
1 parent a0fd907 commit 58d58a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ public IMethodBinding[] getDeclaredMethods() {
860860
if (isFromSource()) {
861861
methods = methods.sorted(Comparator.comparingInt(member -> {
862862
ASTNode node = this.resolver.findDeclaringNode(member);
863-
return node == null ? Integer.MAX_VALUE : node.getStartPosition();
863+
return node == null ? Integer.MIN_VALUE : node.getStartPosition();
864864
}));
865865
} else {
866866
// JDT's class reader keeps the order for fields and methods

0 commit comments

Comments
 (0)