test/tools/javac/annotations/typeAnnotations/classfile/ClassfileTestHelper.java

Print this page

        

*** 35,44 **** --- 35,45 ---- int expected_visibles = 0; //Makes debugging much easier. Set to 'false' for less output. public Boolean verbose = true; void println(String msg) { if(verbose) System.out.println(msg); } + void print(String msg) { if(verbose) System.out.print(msg); } File writeTestFile(String fname, String source) throws IOException { File f = new File(fname); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(f))); out.println(source);
*** 181,190 **** --- 182,195 ---- if(isTAattr) { //count RuntimeTypeAnnotations RuntimeTypeAnnotations_attribute tAttr = (RuntimeTypeAnnotations_attribute)attr; println(testtype + ": " + name + ", " + annName + ": " + tAttr.annotations.length ); + if(tAttr.annotations.length>0) + for( int i = 0; i<tAttr.annotations.length; i++) + println(" types:" + tAttr.annotations[i].position.type); + else println(""); allt += tAttr.annotations.length; if (visible) tvisibles += tAttr.annotations.length; else tinvisibles += tAttr.annotations.length;