diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-10-25 17:08:16 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-10-29 22:57:46 +0100 |
commit | 5095cfaac98aa7f841cb88f432ca81fdb79de893 (patch) | |
tree | de72e13d151e9a309c0c5902ec9f9da875871104 /src/core/lombok | |
parent | dfbd843e5ac95dcd10cfb0c3d403d588b4123394 (diff) | |
download | lombok-5095cfaac98aa7f841cb88f432ca81fdb79de893.tar.gz lombok-5095cfaac98aa7f841cb88f432ca81fdb79de893.tar.bz2 lombok-5095cfaac98aa7f841cb88f432ca81fdb79de893.zip |
[#2612] Set VarSymbol.owner
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/javac/handlers/JavacHandlerUtil.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java index 5e64d8ef..8d21f903 100644 --- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java +++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java @@ -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); } |