aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-10-25 17:08:16 +0100
committerRoel Spilker <r.spilker@gmail.com>2020-10-29 22:57:46 +0100
commit5095cfaac98aa7f841cb88f432ca81fdb79de893 (patch)
treede72e13d151e9a309c0c5902ec9f9da875871104 /src/core/lombok
parentdfbd843e5ac95dcd10cfb0c3d403d588b4123394 (diff)
downloadlombok-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.java3
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);
}