test/tools/javap/T6622260.java

changeset 88
05684554f040
parent 46
7708bd6d800d
child 146
6fcc8de719f5
equal deleted inserted replaced
87:fd1d361ae294 88:05684554f040
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")) {
193 // make sure to ignore filename
194 output = output.substring(output.indexOf('\n'));
195 }
192 if (output.indexOf("-") >= 0) 196 if (output.indexOf("-") >= 0)
193 throw new Error("- found in output"); 197 throw new Error("- found in output");
194 if (output.indexOf("FFFFFF") >= 0) 198 if (output.indexOf("FFFFFF") >= 0)
195 throw new Error("FFFFFF found in output"); 199 throw new Error("FFFFFF found in output");
196 } 200 }

mercurial