sarutak commented on code in PR #52956:
URL: https://github.com/apache/spark/pull/52956#discussion_r2509250826
##########
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:
I think it's better to keep the workaround for Java 18+ for the time being
to ensure behavior is not changed for the versions.
What do you think?
--
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]