Skip to content

Commit

Permalink
[projectlombok#2612] VarSymbol.adr is required for flow analysis in N…
Browse files Browse the repository at this point in the history
…etbeans
  • Loading branch information
Rawi01 committed Oct 21, 2020
1 parent bfb9435 commit d049af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/lombok/javac/handlers/JavacHandlerUtil.java
Expand Up @@ -1241,6 +1241,7 @@ public static void injectMethod(JavacNode typeNode, JCMethodDecl method, List<Ty
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>();
Expand Down
1 change: 1 addition & 0 deletions src/stubs/com/sun/tools/javac/code/Symbol.java
Expand Up @@ -62,6 +62,7 @@ public MethodSymbol(long flags, Name name, Type type, Symbol owner) {}

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; }
Expand Down

0 comments on commit d049af3

Please sign in to comment.