You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "dweiss (via GitHub)" <gi...@apache.org> on 2025/04/29 11:42:07 UTC
Re: [PR] Upgrade to Gradle 8.14 and Java 24 minimum [lucene]
dweiss commented on code in PR #14533:
URL: https://github.com/apache/lucene/pull/14533#discussion_r2066138666
##########
lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java:
##########
@@ -365,7 +365,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:
The compiler complains about it. Try reverting and see for yourself.
--
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@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org