changeset 53158:9c6df7a2744f lworld

[lworld] Added missing .box declarations to avoid NullPointerException
author thartmann
date Tue, 04 Dec 2018 10:05:08 +0100
parents c070d56be82c
children a54562c71d46
files test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNullableValueTypes.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNullableValueTypes.java	Tue Dec 04 09:31:15 2018 +0100
+++ b/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNullableValueTypes.java	Tue Dec 04 10:05:08 2018 +0100
@@ -164,7 +164,7 @@
     }
 
     @Test
-    public MyValue1 test5(MyValue1.box vt) {
+    public MyValue1.box test5(MyValue1.box vt) {
         try {
             Object o = vt;
             vt = (MyValue1)o;
@@ -181,17 +181,17 @@
 
     @DontCompile
     public void test5_verifier(boolean warmup) {
-        MyValue1 vt = test5(nullField);
+        MyValue1.box vt = test5(nullField);
         Asserts.assertEquals((Object)vt, null);
     }
 
     @DontInline
-    public MyValue1 test5_dontinline(MyValue1 vt) {
+    public MyValue1.box test5_dontinline(MyValue1.box vt) {
         return vt;
     }
 
     @ForceInline
-    public MyValue1 test5_inline(MyValue1 vt) {
+    public MyValue1.box test5_inline(MyValue1.box vt) {
         return vt;
     }