Skip to content

Crash with supercall to Java interface #224

@lrytz

Description

@lrytz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions