< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/Empty.java

Print this page

        

*** 32,51 **** EmptyValue e = __MakeDefault EmptyValue(); return e; } } /** * @test Empty * @summary Test empty value type * @compile -XDenableValueTypes Empty.java * @run main/othervm -Xint -XX:+EnableValhalla runtime.valhalla.valuetypes.Empty * @run main/othervm -Xcomp -XX:+EnableValhalla runtime.valhalla.valuetypes.Empty */ public class Empty { public static void main(String[] args) { try { ! EmptyValue.createEmptyValue(); ! throw new RuntimeException("Excepted class file parse error"); } catch (ClassFormatError cfe) {} } } --- 32,58 ---- EmptyValue e = __MakeDefault EmptyValue(); return e; } } + class EmptyTest { + public void run() { + EmptyValue.createEmptyValue(); + throw new RuntimeException("Expected class file parse error"); + } + } + /** * @test Empty * @summary Test empty value type * @compile -XDenableValueTypes Empty.java * @run main/othervm -Xint -XX:+EnableValhalla runtime.valhalla.valuetypes.Empty * @run main/othervm -Xcomp -XX:+EnableValhalla runtime.valhalla.valuetypes.Empty */ public class Empty { public static void main(String[] args) { try { ! EmptyTest test = new EmptyTest(); ! test.run(); } catch (ClassFormatError cfe) {} } }
< prev index next >