diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-10-21 09:56:23 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-10-29 22:57:46 +0100 |
commit | f04ee37f6bd57564f3529030ac1a5233428894ea (patch) | |
tree | 27a42bd5c17cd444b2233299398b15a4f7004e71 /src/core/lombok/javac/handlers/JavacHandlerUtil.java | |
parent | bfb9435daafe3de9ccc58f377a3f4cdabb872f71 (diff) | |
download | lombok-f04ee37f6bd57564f3529030ac1a5233428894ea.tar.gz lombok-f04ee37f6bd57564f3529030ac1a5233428894ea.tar.bz2 lombok-f04ee37f6bd57564f3529030ac1a5233428894ea.zip |
[#2612] VarSymbol.adr is required for flow analysis in Netbeans
Diffstat (limited to 'src/core/lombok/javac/handlers/JavacHandlerUtil.java')
-rw-r--r-- | src/core/lombok/javac/handlers/JavacHandlerUtil.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java index 5ff29758..48942ea9 100644 --- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java +++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java @@ -1241,6 +1241,7 @@ public class JavacHandlerUtil { if (param.sym == null) { Type paramType = paramTypes == null ? param.getType().type : paramTypes.get(i); VarSymbol varSymbol = new VarSymbol(param.mods.flags, param.name, paramType, symtab.noSymbol); + varSymbol.adr = i; List<JCAnnotation> annotations = param.getModifiers().getAnnotations(); if (annotations != null && !annotations.isEmpty()) { ListBuffer<Attribute.Compound> newAnnotations = new ListBuffer<Attribute.Compound>(); |