Skip to content

Resolve inherited Java static method #7386

Closed
scala/scala
#8432
@scabug

Description

@scabug

Inherit static method from Java class is not recognized by Scala class
Here there is an small and simple example:

MyClass.java
public class MyClass extends MyClassBase {}

abstract class MyClassBase {
  public static void myStaticBaseMethod() {}
}

MyScalaClass.scala
class MyScalaClass {
  MyClassBase.myStaticBaseMethod() //compiles
  MyClass.myStaticBaseMethod() //no compiles. Wrong!!!
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions