Reidddddd commented on a change in pull request #503: HBASE-22870 reflection 
fails to access a private nested class
URL: https://github.com/apache/hbase/pull/503#discussion_r314933324
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
 ##########
 @@ -3906,7 +3906,7 @@ public boolean isShutDown() {
   /**
    * Force to terminate region server when abort timeout.
    */
-  private static class SystemExitWhenAbortTimeout extends TimerTask {
+  public static class SystemExitWhenAbortTimeout extends TimerTask {
 
 Review comment:
   It is reasonable to keep it private since it is an inner task which should 
not be seen outside service.
   
   I suggest using 
   `getDeclaredConstructor().setAccessible(true).newInstance()` to bypass it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to