I have an object within another object in Scala which I want to import in Java. The setup is something like this:
Scala:
package scalapart;
object Outer {
object Inner {
def method: String = "test"
}
}
Java:
import scalapart.Outer.Inner;
...
Outer.Inner.method()
Unfortunately, I get cannot find symbol in line 1 of the Java code. And if I import scalapart.Outer;, then the second line reports the same issue.
Is there a way to import a Scala object that is defined inside another Scala object in Java?