-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Do not autoimport scala.* when parsing .java files #7312
Labels
Comments
TheElectronWill
added a commit
to TheElectronWill/dotty
that referenced
this issue
Jul 21, 2020
TheElectronWill
added a commit
to TheElectronWill/dotty
that referenced
this issue
Jul 21, 2020
Instead of setting the scala root imports in the rootContext, set it later and choose the right import depending on the language (java and scala).
TheElectronWill
added a commit
to TheElectronWill/dotty
that referenced
this issue
Jul 21, 2020
Instead of setting the scala root imports in the rootContext, set them later and choose the right import depending on the language (java and scala).
TheElectronWill
added a commit
to TheElectronWill/dotty
that referenced
this issue
Jul 21, 2020
Instead of setting the scala root imports in the rootContext, set them later and choose the right imports depending on the language (java or scala).
odersky
added a commit
that referenced
this issue
Aug 10, 2020
Fix #7312: Choose root imports based on the source file
I can confirm that Java methods returning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
overview
Calling Java methods that return a non-primitive Java object from Scala causes a runtime error. Examples:
java.lang.Long
java.lang.Boolean
...
minimized code
Calling code.
assertEquals(4L, beanConfig.getLongObj)
result
expectation
Code should run.
work around
Fully specify return value
The text was updated successfully, but these errors were encountered: