You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object Test {
def main(args: Array[String]): Unit = {
val outter = new MyTest {
val inner = new MyTest {
}
}
}
}
class MyTest {
println(s"${getClass.getName} - ${getClass.getDeclaringClass}")
}
Results in:
java.lang.IncompatibleClassChangeError: Test$ and Test$$anon$1$$anon$2 disagree on InnerClasses attribute
java.lang.IncompatibleClassChangeError: Test$ and Test$$anon$1$$anon$2 disagree on InnerClasses attribute
at java.lang.Class.getDeclaringClass0(Native Method)
at java.lang.Class.getDeclaringClass(Class.java:1101)