< prev index next >

test/compiler/c2/6894807/IsInstanceTest.java

Print this page
rev 11309 : 8158182: remove shell script from compiler/c2/6894807/IsInstanceTest.java
Reviewed-by:

*** 23,49 **** /* * @test * @bug 6894807 * @summary No ClassCastException for HashAttributeSet constructors if run with -Xcomp ! * @compile IsInstanceTest.java ! * @run shell Test6894807.sh */ public class IsInstanceTest { public static void main(String[] args) { BaseInterface baseInterfaceImpl = new BaseInterfaceImpl(); for (int i = 0; i < 100000; i++) { if (isInstanceOf(baseInterfaceImpl, ExtendedInterface.class)) { ! System.out.println("Failed at index:" + i); ! System.out.println("Arch: "+System.getProperty("os.arch", "")+ ! " OS: "+System.getProperty("os.name", "")+ ! " OSV: "+System.getProperty("os.version", "")+ ! " Cores: "+Runtime.getRuntime().availableProcessors()+ ! " JVM: "+System.getProperty("java.version", "")+" "+System.getProperty("sun.arch.data.model", "")); ! break; } } System.out.println("Done!"); } --- 23,42 ---- /* * @test * @bug 6894807 * @summary No ClassCastException for HashAttributeSet constructors if run with -Xcomp ! * @run main IsInstanceTest */ public class IsInstanceTest { public static void main(String[] args) { BaseInterface baseInterfaceImpl = new BaseInterfaceImpl(); for (int i = 0; i < 100000; i++) { if (isInstanceOf(baseInterfaceImpl, ExtendedInterface.class)) { ! throw new AssertionError("Failed at index:" + i); } } System.out.println("Done!"); }
< prev index next >