[#2612] VarSymbol.adr is required for flow analysis in Netbeans

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2020-10-29 22:57:46 +01:00
1 parent bfb9435daa
commit f04ee37f6b
2 files changed
+2

No files matched your search

@@ -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>();
@@ -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; }