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
Fixes IllegalAccessError with Java package protected class (#21362)
This is a backport of Scala 2.x scala/scala#6023 by @lrytzFixes#13841Fixes#13897
## Problem
When compiling `builder.call1().call2()` where both are Java-defined
package-protected class through a public subsclass, Scala 3 does not
properly cast the receiver to the public class, and results in an
IllegalAccessError.
## Solution
This backports the casting fix from the Scala 2.x compiler.
0 commit comments