< prev index next >

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

Print this page
*** 1561,10 ***
--- 1561,16 ---
  
              public boolean isHiddenMember(int flags) {
                  return (flags & MN_HIDDEN_MEMBER) == MN_HIDDEN_MEMBER;
              }
  
+             public boolean isNullRestrictedField(MethodHandle mh) {
+                 var memberName = mh.internalMemberName();
+                 assert memberName.isField();
+                 return memberName.isNullRestricted();
+             }
+ 
              @Override
              public Map<String, byte[]> generateHolderClasses(Stream<String> traces) {
                  return GenerateJLIClassesHelper.generateHolderClasses(traces);
              }
  
< prev index next >