dweiss commented on code in PR #14591:
URL: https://github.com/apache/lucene/pull/14591#discussion_r2068225660


##########
lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java:
##########
@@ -379,7 +379,9 @@ private static <A> MMapIndexInputProvider<A> 
lookupProvider() {
       // access through the lookup:
       final var constr = lookup.findConstructor(cls, 
MethodType.methodType(void.class, int.class));
       try {
-        return (MMapIndexInputProvider<A>) constr.invoke(maxPermits);
+        @SuppressWarnings("unchecked")

Review Comment:
   I assumed that it'd still fail with javac 24 if you're running with that. 
But apparently it works so it (javac) must be --target (or --source, or 
--release) sensitive somehow.



-- 
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-unsubscr...@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to