Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with supercall to Java interface #224

Closed
lrytz opened this issue Sep 13, 2016 · 2 comments
Closed

Crash with supercall to Java interface #224

lrytz opened this issue Sep 13, 2016 · 2 comments
Milestone

Comments

@lrytz
Copy link
Member

lrytz commented Sep 13, 2016

Related to #143 - possibly regressed in scala/scala#5377 (just a guess):

T.java

interface T { default int f() { return 1; } }

Test.scala

trait U extends T
class C extends U { def t = super.f }

compiling scalac Test.scala T.java

java.lang.AssertionError: assertion failed:
  cannot invokespecial T.f, the interface is not a direct parent.

For some reason we don't catch this case in SuperAccessors.

@lrytz lrytz added this to the 2.12.0-RC2 milestone Sep 13, 2016
@lrytz lrytz added the bug label Sep 13, 2016
@lrytz
Copy link
Member Author

lrytz commented Sep 21, 2016

Fixed in my branch for #228 that eliminates static forwarders (https://github.com/scala/scala/compare/2.12.0...lrytz:traitSuperAccessors?expand=1)

@adriaanm
Copy link
Contributor

scala/scala#5429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants