uschindler commented on code in PR #15864:
URL: https://github.com/apache/lucene/pull/15864#discussion_r2976414825
##########
lucene/core/src/java/org/apache/lucene/internal/tests/TestSecrets.java:
##########
@@ -143,6 +129,14 @@ public static void
setFilterInputIndexAccess(FilterIndexInputAccess filterIndexI
TestSecrets.filterIndexInputAccess = filterIndexInputAccess;
}
+ private static void ensureInitialized(Class<?> clazz) {
+ try {
+ MethodHandles.lookup().ensureInitialized(clazz);
+ } catch (IllegalAccessException e) {
+ throw new RuntimeException(e);
Review Comment:
The IllegalAcceddException cannot happen here, because we use a private
lookup. Therefore it is impossible to happen.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]