< prev index next >
test/jdk/valhalla/valuetypes/QTypeDescriptorTest.java
Print this page
rev 55117 : 8223350: [lworld] Use inline classes instead of value classes
@@ -78,11 +78,11 @@
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
+ // 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,11 +205,11 @@
interface I {
Line toLine(Point p, NonFlattenValue nfv);
}
- static value class ValueTest {
+ static inline class ValueTest {
private final int value;
public ValueTest() { this.value = 0; }
public static void run() {
Runnable r = () -> {
< prev index next >