< prev index next >

src/java.base/share/classes/java/lang/invoke/VarHandle.java

Print this page
rev 55127 : 8223351: [lworld] Primary mirror and nullable mirror for inline type
Reviewed-by: tbd

@@ -1552,12 +1552,12 @@
             Class<?>[] ps;
             int i;
             // the field type (value) is mapped to the return type of MethodType
             // the receiver type is mapped to a parameter type of MethodType
             // So use the value type as receiver may be a box type.
-            if (receiver != null && receiver.isValue())
-                receiver = receiver.asValueType();
+            if (receiver != null)
+                receiver = receiver.asPrimaryType();
             switch (this) {
                 case GET:
                     ps = allocateParameters(0, receiver, intermediate);
                     fillParameters(ps, receiver, intermediate);
                     return MethodType.methodType(value, ps);
< prev index next >