test/tools/javac/tree/SourceTreeScannerTest.java

changeset 1944
aa6c6f8b5622
parent 1757
529fb3ed5d2a
child 2525
2eb010b6cb22
equal deleted inserted replaced
1943:8f282dc58dfc 1944:aa6c6f8b5622
138 for (Field f: getFields(tree)) { 138 for (Field f: getFields(tree)) {
139 if (TypeBoundKind.class.isAssignableFrom(f.getType())) { 139 if (TypeBoundKind.class.isAssignableFrom(f.getType())) {
140 // not part of public API 140 // not part of public API
141 continue; 141 continue;
142 } 142 }
143 if (JCTree.JCNewArray.class.isAssignableFrom(tree.getClass())
144 && (f.getName().equals("annotations")
145 || f.getName().equals("dimAnnotations"))) {
146 // these fields are incorrectly missing from the public API
147 // (CR 6983297)
148 continue;
149 }
150 try { 143 try {
151 //System.err.println("FIELD: " + f.getName()); 144 //System.err.println("FIELD: " + f.getName());
152 reflectiveScan(f.get(tree)); 145 reflectiveScan(f.get(tree));
153 } catch (IllegalAccessException e) { 146 } catch (IllegalAccessException e) {
154 error(e.toString()); 147 error(e.toString());

mercurial