No mixin forwarder when ancestor is sealed#23482
Conversation
a85d7c5 to
726e081
Compare
|
Not settled on the solution, but added |
|
Looking into a Scala 2 issue, JVM spec says • Each invokespecial instruction must name one of the following: by which I understand direct superinterface to mean the forwarder won't work if not implementing the superinterface. |
|
Flaky: |
726e081 to
282435d
Compare
282435d to
249f8d9
Compare
|
@hamzaremmal Do you have an ETA for when you will have time to review this? |
I'm quite busy with some urgent work. I'll probably review it after Scala Days 2025. Regardless, it will be included in 3.8.0. |
|
@som-snytt can you please rebase on top of the latest commit in main. |
249f8d9 to
545fdd9
Compare
Fixes #23479
Adds check for Java sealed ancestor to
needsMixinForwarder.If it's ok to invokespecial an indirect superinterface, then the fix should be in the backend, to not add the interface parent.