< prev index next >

test/jdk/valhalla/valuetypes/Value.java

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

@@ -19,11 +19,11 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-public value class Value {
+public inline class Value {
     char char_v;
     byte byte_v;
     boolean boolean_v;
     int int_v;
     short short_v;

@@ -145,21 +145,21 @@
             v = __WithField(v.s, s);
             return v;
         }
     }
 
-    static value class IntValue implements Number {
+    static inline class IntValue implements Number {
         int i;
         IntValue() {
             i = 0;
         }
         public int intValue() {
             return i;
         }
     }
 
-    static value class ShortValue implements Number {
+    static inline class ShortValue implements Number {
         short s;
         ShortValue() {
             s = 0;
         }
         public short shortValue() {
< prev index next >