Is there any safe way to serialize/deserialize Java Lambda for two different JREs?
问题 There is a client that needs to serialize many lambda functions defined in the client side and send them to the server, which has to be able to correctly deserialize them. The server also have implementations of all those lambda functions in the client, but the details could be slightly different from the client-side implementations (like minor versioning differences). Given that Java Lambdas depends on compiler specific artifacts, simply serializing a lambda function to SerializedLambda and