mdedetrich opened a new pull request, #1070: URL: https://github.com/apache/incubator-pekko/pull/1070
We are currently having the issue where the Scala 3 `inline` keyword actually strips any mention of the method inside the bytecode which is causing issues . Thankfully Scala 3 also introduced [targetName](https://docs.scala-lang.org/scala3/reference/other-new-features/targetName.html) which lets you set the target designated symbol name in the bytecode of any method, i.e. if you have ``` @targetName("methodB") def methodA ``` Then it will actually be called `methodB` in the generated JVM bytecode. We can use this trick to resolve https://github.com/apache/incubator-pekko/issues/1066 by just creating an alias method for every `inline def` and using `targetName` for the original method name and there won't be any conflict in the bytecode since `inline def` methods never generate any JVM bytecode (thats what the original problem is) -- 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]
