Skip to content

False-negative: class needs to be abstract when inherits java class and interface #13074

Open
@XYZboom

Description

@XYZboom

Reproduction steps

Scala version: 2.13.15

// FILE: I0.java
public interface I0<T> {
    public void func(A<String> a, T s);
}
// FILE: I1.java
public interface I1 extends I0<String> {
    public default void func(A<Object> a, String s) {

    }
}
class A[T0]
class A0 extends I1 {
}

Problem

The compiler passed the code above.
There should be a class A0 needs to be abstract here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)java interop

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions