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
This crashes with IllegalAccessError: class s.T tried to access protected method j.J.i.
Before scala/scala#8835, the compiler actually emitted a protected accessor in this example, so self.i was actually acting like a super call.
If the two classes are in the same package, the method J.i is accessible. In this case the runtime behavior is actually an infinite recursion, as it should be.