src/share/classes/com/sun/tools/javac/comp/Check.java

changeset 1920
b02f28bf7f1c
parent 1907
e990e6bcecbe
child 1945
f7f271bd74a2
equal deleted inserted replaced
1919:3155e77d2676 1920:b02f28bf7f1c
2995 // collect an inventory of the annotation elements 2995 // collect an inventory of the annotation elements
2996 Set<MethodSymbol> members = new LinkedHashSet<MethodSymbol>(); 2996 Set<MethodSymbol> members = new LinkedHashSet<MethodSymbol>();
2997 for (Scope.Entry e = a.annotationType.type.tsym.members().elems; 2997 for (Scope.Entry e = a.annotationType.type.tsym.members().elems;
2998 e != null; 2998 e != null;
2999 e = e.sibling) 2999 e = e.sibling)
3000 if (e.sym.kind == MTH && e.sym.name != names.clinit) 3000 if (e.sym.kind == MTH && e.sym.name != names.clinit &&
3001 (e.sym.flags() & SYNTHETIC) == 0)
3001 members.add((MethodSymbol) e.sym); 3002 members.add((MethodSymbol) e.sym);
3002 3003
3003 // remove the ones that are assigned values 3004 // remove the ones that are assigned values
3004 for (JCTree arg : a.args) { 3005 for (JCTree arg : a.args) {
3005 if (!arg.hasTag(ASSIGN)) continue; // recovery 3006 if (!arg.hasTag(ASSIGN)) continue; // recovery

mercurial