aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-10-21 09:56:23 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-10-29 22:57:46 +0100
commitf04ee37f6bd57564f3529030ac1a5233428894ea (patch)
tree27a42bd5c17cd444b2233299398b15a4f7004e71
parentbfb9435daafe3de9ccc58f377a3f4cdabb872f71 (diff)
downloadlombok-f04ee37f6bd57564f3529030ac1a5233428894ea.tar.gz
lombok-f04ee37f6bd57564f3529030ac1a5233428894ea.tar.bz2
lombok-f04ee37f6bd57564f3529030ac1a5233428894ea.zip
[#2612] VarSymbol.adr is required for flow analysis in Netbeans
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java1
-rw-r--r--src/stubs/com/sun/tools/javac/code/Symbol.java1
2 files changed, 2 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>();
diff --git a/src/stubs/com/sun/tools/javac/code/Symbol.java b/src/stubs/com/sun/tools/javac/code/Symbol.java
index 15b04148..fa15ceb1 100644
--- a/src/stubs/com/sun/tools/javac/code/Symbol.java
+++ b/src/stubs/com/sun/tools/javac/code/Symbol.java
@@ -62,6 +62,7 @@ public abstract class Symbol implements Element {
public static class VarSymbol extends Symbol implements VariableElement {
public Type type;
+ public int adr;
public VarSymbol(long flags, Name name, Type type, Symbol owner) {
}
@Override public ElementKind getKind() { return null; }