opal icon indicating copy to clipboard operation
opal copied to clipboard

Update scalaLambdaDeserializeResolution

Open errt opened this issue 10 months ago • 0 comments

InvokedynamicRewriting.scalaLambdaDeserializeResolution handles the scala.runtime.LambdaDeserialize.bootstrap bootstrap method. Currently, it only supports InvokeStaticMethodHandles, because the implementation of ClassFileFactory.DeserializeLambdaProxy can only process these.

More recent Scala compilers, however, also produce InvokeSpecialMethodHandles, which we should be able to process.

However, I can't find the bytecode that is referenced in the ClassFileFactory, making it hard to adapt it correctly.

errt avatar May 09 '25 14:05 errt