reproduction steps
I have the following scala code (in scala 2.11.12)
package pkg1
object outer {
object inner {
def foo() = ???
}
}
And the following java code to call function foo
package pkg2;
import pkg1.outer;
public class Test {
public void bar() {
outer.inner$.MODULE$.foo();
}
}
for JDK8, it works. But for JDK11, the compiler complain "cannot find symbol inner$"
problem
I checked the class files and found the decompiled codes are exactly the same.