LuciferYang commented on code in PR #52956:
URL: https://github.com/apache/spark/pull/52956#discussion_r2508558055
##########
common/utils/src/main/scala/org/apache/spark/util/ClosureCleaner.scala:
##########
@@ -596,6 +611,173 @@ private[spark] object ClosureCleaner extends Logging {
}
obj
}
+
+ def convertIndyLambdaForJava22[F <: AnyRef](
+ indyLambda: F,
+ outerThis: AnyRef,
+ lambdaProxy: SerializedLambda): Option[F] = {
+ if (Runtime.version().feature() >= 22) {
Review Comment:
Actually, starting from Java 18 or 19, we can already follow this branch.
Previously, we relied on adding the `-Djdk.reflect.useDirectMethodHandle=false`
option as a workaround.
--
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]