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 09:00:57 UTC

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

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



##########
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:
       looks like it issues a warning in JDK11 and throws exception in JDK12 and above. I can update the subject 




-- 
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