< prev index next >

test/hotspot/jtreg/runtime/Unsafe/RangeCheck.java

Print this page

        

@@ -57,9 +57,9 @@
     }
 
     public static class DummyClassWithMainRangeCheck {
         public static void main(String args[]) throws Exception {
             Unsafe unsafe = Unsafe.getUnsafe();
-            unsafe.getObject(new DummyClassWithMainRangeCheck(), Short.MAX_VALUE);
+            unsafe.getReference(new DummyClassWithMainRangeCheck(), Short.MAX_VALUE);
         }
     }
 }
< prev index next >