You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2021/06/30 08:49:59 UTC

[GitHub] [hbase] Apache9 commented on a change in pull request #3443: HBASE-25516 jdk11 reflective access Field.class.getDeclaredField("modifiers") not supported

Apache9 commented on a change in pull request #3443:
URL: https://github.com/apache/hbase/pull/3443#discussion_r661260482



##########
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/util/ReflectionUtils.java
##########
@@ -228,4 +229,38 @@ public static Object invokeMethod(Object obj, String methodName, Object... param
     return parameterTypes;
   }
 
+  public static Field getModifiersField() throws IllegalAccessException, NoSuchFieldException {
+    // this is copied from https://github.com/powermock/powermock/pull/1010/files to work around
+    // JDK 12+

Review comment:
       This is for jdk17 or jdk11? The title of the PR says this is jdk11 but the comment here is for jdk12+...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org