Skip to content

Commit

Permalink
[projectlombok#2612] Set VarSymbol.owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 committed Oct 25, 2020
1 parent e2a22be commit 7a1007c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/lombok/javac/handlers/JavacHandlerUtil.java
Expand Up @@ -1275,6 +1275,9 @@ private static void fixMethodMirror(Context context, Element typeMirror, long ac
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);
}
Expand Down
1 change: 1 addition & 0 deletions src/stubs/com/sun/tools/javac/code/Symbol.java
Expand Up @@ -24,6 +24,7 @@
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; }
Expand Down

0 comments on commit 7a1007c

Please sign in to comment.