>From Michael Blow <[email protected]>: Michael Blow has submitted this change. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18180 )
Change subject: [NO ISSUE][HYR][MISC] += ReflectionUtils.getAccessibleMethod ...................................................................... [NO ISSUE][HYR][MISC] += ReflectionUtils.getAccessibleMethod Change-Id: I8d58abaacc81a65f35dbc6f7dc8d1b3daaa3ad01 Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18180 Reviewed-by: Michael Blow <[email protected]> Reviewed-by: Hussain Towaileb <[email protected]> Tested-by: Jenkins <[email protected]> --- M hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ReflectionUtils.java 1 file changed, 20 insertions(+), 0 deletions(-) Approvals: Michael Blow: Looks good to me, but someone else must approve Hussain Towaileb: Looks good to me, approved Jenkins: Verified diff --git a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ReflectionUtils.java b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ReflectionUtils.java index a5c83f0..7cc5cf8 100644 --- a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ReflectionUtils.java +++ b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ReflectionUtils.java @@ -20,6 +20,7 @@ import java.io.IOException; import java.lang.reflect.Field; +import java.lang.reflect.Method; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -103,4 +104,10 @@ throw new IOException(e); } } + + public static Method getAccessibleMethod(Class<?> clazz, String methodName) throws NoSuchMethodException { + Method m = clazz.getDeclaredMethod(methodName); + m.setAccessible(true); + return m; + } } -- To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18180 To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: neo Gerrit-Change-Id: I8d58abaacc81a65f35dbc6f7dc8d1b3daaa3ad01 Gerrit-Change-Number: 18180 Gerrit-PatchSet: 2 Gerrit-Owner: Michael Blow <[email protected]> Gerrit-Reviewer: Hussain Towaileb <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Reviewer: Michael Blow <[email protected]> Gerrit-MessageType: merged
