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
This is a backport of Scala 2.x scala/scala 6023
Fixes 13841
Fixes 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.
[Cherry-picked e7d479f]
0 commit comments