< prev index next >

test/jdk/java/lang/reflect/AccessibleObject/CanAccessTest.java

Print this page
rev 54303 : 8221477: Inject os/cpu-specific constants into Unsafe from JVM
Summary: Initialize Unsafe os/cpu-specific constants using injection instead of native callouts
Reviewed-by: duke

*** 92,102 **** /** * the specified object must be an instance of the declaring class * for instance members */ public void testInstanceMethod() throws Exception { ! Method m = Unsafe.class.getDeclaredMethod("addressSize0"); assertFalse(m.canAccess(INSTANCE)); try { m.canAccess(null); assertTrue(false); --- 92,102 ---- /** * the specified object must be an instance of the declaring class * for instance members */ public void testInstanceMethod() throws Exception { ! Method m = Unsafe.class.getDeclaredMethod("allocateMemory0", long.class); assertFalse(m.canAccess(INSTANCE)); try { m.canAccess(null); assertTrue(false);
< prev index next >