34 int expected_invisibles = 0; |
34 int expected_invisibles = 0; |
35 int expected_visibles = 0; |
35 int expected_visibles = 0; |
36 |
36 |
37 //Makes debugging much easier. Set to 'false' for less output. |
37 //Makes debugging much easier. Set to 'false' for less output. |
38 public Boolean verbose = true; |
38 public Boolean verbose = true; |
39 void println(String msg) { if(verbose) System.out.println(msg); } |
39 void println(String msg) { if (verbose) System.out.println(msg); } |
|
40 void print(String msg) { if (verbose) System.out.print(msg); } |
40 |
41 |
41 File writeTestFile(String fname, String source) throws IOException { |
42 File writeTestFile(String fname, String source) throws IOException { |
42 File f = new File(fname); |
43 File f = new File(fname); |
43 PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(f))); |
44 PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(f))); |
44 out.println(source); |
45 out.println(source); |
181 if(isTAattr) { //count RuntimeTypeAnnotations |
182 if(isTAattr) { //count RuntimeTypeAnnotations |
182 RuntimeTypeAnnotations_attribute tAttr = |
183 RuntimeTypeAnnotations_attribute tAttr = |
183 (RuntimeTypeAnnotations_attribute)attr; |
184 (RuntimeTypeAnnotations_attribute)attr; |
184 println(testtype + ": " + name + ", " + annName + ": " + |
185 println(testtype + ": " + name + ", " + annName + ": " + |
185 tAttr.annotations.length ); |
186 tAttr.annotations.length ); |
|
187 if (tAttr.annotations.length > 0) { |
|
188 for (int i = 0; i < tAttr.annotations.length; i++) { |
|
189 println(" types:" + tAttr.annotations[i].position.type); |
|
190 } |
|
191 } else { |
|
192 println(""); |
|
193 } |
186 allt += tAttr.annotations.length; |
194 allt += tAttr.annotations.length; |
187 if (visible) |
195 if (visible) |
188 tvisibles += tAttr.annotations.length; |
196 tvisibles += tAttr.annotations.length; |
189 else |
197 else |
190 tinvisibles += tAttr.annotations.length; |
198 tinvisibles += tAttr.annotations.length; |