Using Scala type aliases from Java code
问题 Suppose I have type alias defined in scala as object Foo { type Bar = Option[String] } It looks like I cannot refer to alias in Java code like that (it simply complains cannot find symbol ): import Foo.*; public class Cafebabe { void bar(Bar x) { //... } } I've tried static import as well. (More specifically, I have java reflection code which I cannot change that needs to know parameter type and I need to feed Bar alias to it). I know, I can create wrapper in Scala class BarWrapper(value: Bar