< prev index next >

test/jdk/valhalla/valuetypes/QTypeDescriptorTest.java

Print this page
rev 55117 : 8223350: [lworld] Use inline classes instead of value classes

*** 78,88 **** assertEquals(l.p2, NFV.pointValue()); } @Test public static void testStaticMethod() throws Throwable { ! // static method in a value type with no parameter and void return type Runnable r = () -> ValueTest.run(); r.run(); // via Method::invoke Method m = ValueTest.class.getMethod("run"); --- 78,88 ---- assertEquals(l.p2, NFV.pointValue()); } @Test public static void testStaticMethod() throws Throwable { ! // static method in an inline type with no parameter and void return type Runnable r = () -> ValueTest.run(); r.run(); // via Method::invoke Method m = ValueTest.class.getMethod("run");
*** 205,215 **** interface I { Line toLine(Point p, NonFlattenValue nfv); } ! static value class ValueTest { private final int value; public ValueTest() { this.value = 0; } public static void run() { Runnable r = () -> { --- 205,215 ---- interface I { Line toLine(Point p, NonFlattenValue nfv); } ! static inline class ValueTest { private final int value; public ValueTest() { this.value = 0; } public static void run() { Runnable r = () -> {
< prev index next >