equal
deleted
inserted
replaced
2395 |
2395 |
2396 /** Check for cycles in the graph of annotation elements. |
2396 /** Check for cycles in the graph of annotation elements. |
2397 */ |
2397 */ |
2398 void checkNonCyclicElements(JCClassDecl tree) { |
2398 void checkNonCyclicElements(JCClassDecl tree) { |
2399 if ((tree.sym.flags_field & ANNOTATION) == 0) return; |
2399 if ((tree.sym.flags_field & ANNOTATION) == 0) return; |
2400 assert (tree.sym.flags_field & LOCKED) == 0; |
2400 Assert.check((tree.sym.flags_field & LOCKED) == 0); |
2401 try { |
2401 try { |
2402 tree.sym.flags_field |= LOCKED; |
2402 tree.sym.flags_field |= LOCKED; |
2403 for (JCTree def : tree.defs) { |
2403 for (JCTree def : tree.defs) { |
2404 if (def.getTag() != JCTree.METHODDEF) continue; |
2404 if (def.getTag() != JCTree.METHODDEF) continue; |
2405 JCMethodDecl meth = (JCMethodDecl)def; |
2405 JCMethodDecl meth = (JCMethodDecl)def; |