Complete symbols returned by getAllMembers

This commit is contained in:
Liam Miller-Cushon 2025-11-09 19:23:43 +01:00
parent 39c4741f48
commit ecad620d4f

View File

@ -578,8 +578,10 @@ public class JavacElements implements Elements {
boolean initializer = kind == ElementKind.CONSTRUCTOR
|| kind == ElementKind.INSTANCE_INIT
|| kind == ElementKind.STATIC_INIT;
if (!derived || (!initializer && e.isInheritedIn(scope.owner, types)))
if (!derived || (!initializer && e.isInheritedIn(scope.owner, types))) {
e.apiComplete();
scope.enter(e);
}
}
}