-
Notifications
You must be signed in to change notification settings - Fork 1.1k
IllegalAccessError when calling java method defined in base class #8661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
InspectDecompile the
public final class Main$ ...
public void main(final String[] args) {
((C)Predef$.MODULE$.identity((Object)new C())).hi();
}
public final class Main$ ...
public void main(final String[] args) {
((B)Predef$.MODULE$.identity((Object)new C())).hi();
}
} Note the cast |
giabao
added a commit
to ohze/akka
that referenced
this issue
Apr 5, 2020
without this fix, this spec will fail: akka-actor-typed-tests/testOnly akka.actor.typed.TransformMessagesJavaBehaviorSpec
Good catch! |
smarter
added a commit
that referenced
this issue
Apr 5, 2020
Fix #8661: Avoid inaccessible cast targets in erasure
giabao
added a commit
to ohze/akka
that referenced
this issue
Apr 6, 2020
without this fix, this spec will fail: akka-actor-typed-tests/testOnly akka.actor.typed.TransformMessagesJavaBehaviorSpec
giabao
added a commit
to ohze/akka
that referenced
this issue
Apr 7, 2020
without this fix, this spec will fail: akka-actor-typed-tests/testOnly akka.actor.typed.TransformMessagesJavaBehaviorSpec
giabao
added a commit
to ohze/akka
that referenced
this issue
Apr 7, 2020
without this fix, this spec will fail: akka-actor-typed-tests/testOnly akka.actor.typed.TransformMessagesJavaBehaviorSpec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output
Expectation
run successfully as in scala 2
Notes
In sbt:
set Compile/run/fork := true
to mute another errors:The text was updated successfully, but these errors were encountered: