< prev index next >

src/java.base/share/classes/java/lang/reflect/AccessibleObject.java

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

@@ -298,11 +298,11 @@
             modifiers = ((Field) this).getModifiers();
         }
 
         // does not allow to suppress access check for Value class's
         // constructor or field
-        if (declaringClass.isValue()) {
+        if (declaringClass.isInlineClass()) {
             if (this instanceof Constructor) return false;
             if (this instanceof Field && Modifier.isFinal(modifiers)) return false;
         }
 
         Module callerModule = caller.getModule();
< prev index next >