< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestUnresolvedValueClass.java

Print this page

        

*** 23,33 **** /** * @test * @bug 8187679 * @summary The VM should exit gracefully when unable to resolve a value type argument - * @requires vm.compMode != "Xint" * @library /test/lib * @compile -XDemitQtypes -XDenableValueTypes -XDallowFlattenabilityModifiers TestUnresolvedValueClass.java * @run main/othervm -XX:+EnableValhalla TestUnresolvedValueClass */ --- 23,32 ----
*** 56,67 **** OutputAnalyzer oa = ProcessTools.executeTestJvm(arg); // Adapter creation for TestUnresolvedValueClass::test1 should fail with a // ClassNotFoundException because the class for argument 'vt' was not found. String output = oa.getOutput(); ! if (!output.contains("ValueTypePassFieldsAsArgs is not supported on this platform")) { ! oa.shouldContain("java.lang.ClassNotFoundException: SimpleValueType"); ! oa.shouldHaveExitValue(1); ! } } } } --- 55,63 ---- OutputAnalyzer oa = ProcessTools.executeTestJvm(arg); // Adapter creation for TestUnresolvedValueClass::test1 should fail with a // ClassNotFoundException because the class for argument 'vt' was not found. String output = oa.getOutput(); ! oa.shouldContain("java.lang.NoClassDefFoundError: SimpleValueType"); } } }
< prev index next >