test/tools/javap/T6622260.java

changeset 146
6fcc8de719f5
parent 88
05684554f040
child 554
9d9f26857129
equal deleted inserted replaced
145:2c1ef6ec9413 146:6fcc8de719f5
187 return sw.toString(); 187 return sw.toString();
188 } 188 }
189 189
190 void verify(String output) { 190 void verify(String output) {
191 System.out.println(output); 191 System.out.println(output);
192 if (output.startsWith("Classfile")) { 192 output = output.substring(output.indexOf("Test.java"));
193 // make sure to ignore filename
194 output = output.substring(output.indexOf('\n'));
195 }
196 if (output.indexOf("-") >= 0) 193 if (output.indexOf("-") >= 0)
197 throw new Error("- found in output"); 194 throw new Error("- found in output");
198 if (output.indexOf("FFFFFF") >= 0) 195 if (output.indexOf("FFFFFF") >= 0)
199 throw new Error("FFFFFF found in output"); 196 throw new Error("FFFFFF found in output");
200 } 197 }

mercurial