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
Exception in thread "main" java.lang.IllegalAccessError: failed to access classp.A from classq.S (p.A and q.S are in unnamed module of loader 'app')
at q.S.string(S.scala:10)
at q.S$.main(S.scala:5)
at q.S.main(S.scala)
Expectation
This should run just like in Scala 2.13 and earlier, or with the following Java program:
Compiler version
3.6.3
Minimized code
p/I.java
p/A.java
p/B.java
q/S.scala
Then run:
Output
Expectation
This should run just like in Scala 2.13 and earlier, or with the following Java program:
Workarounds
This can be prevented with an auxiliary override in
p.B
:Or, of course, by making
A
public. Both may not be possible or reasonable, though. I don't really see a workaround on the client side (inq.S
)The text was updated successfully, but these errors were encountered: