[#2612] Set VarSymbol.owner

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2020-10-29 22:57:46 +01:00
1 parent dfbd843e5a
commit 5095cfaac9
2 files changed
+4

No files matched your search

@@ -1275,6 +1275,9 @@ public class JavacHandlerUtil {
MethodSymbol methodSymbol = new MethodSymbol(access, methodName, new MethodType(paramTypes, returnType, List.<Type>nil(), Symtab.instance(context).methodClass), cs);
if (params != null && !params.isEmpty()) {
methodSymbol.params = params;
for (VarSymbol varSymbol : params) {
varSymbol.owner = methodSymbol;
}
}
ClassSymbolMembersField.enter(cs, methodSymbol);
}
@@ -24,6 +24,7 @@ import com.sun.tools.javac.util.Name;
public abstract class Symbol implements Element {
public Type type;
public Name name;
public Symbol owner;
public long flags() { return 0; }
public boolean isStatic() { return false; }