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
Java source parser does not follow Java rules for shadowing. #7232
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7232?orig=1
|
@adriaanm said: |
Joseph Freeman (jfree143) said (edited on Mar 11, 2013 5:56:29 PM UTC): It does seem to work if you run the code from within the Eclipse. However, doing 'mvn clean install' in a separate terminal will fail unless the type names are fully qualified every time. Also, if I have Java calling Scala and Scala calling Java, then I don't think your suggestion would work. Right? |
@retronym said: |
@retronym said: Java Spec:
Scala Spec:
|
@retronym said: |
It's easiest to just look at the attachment in order to understand the problem.
The Java class my.test.bl.bo.CashDrawer.getDrawer() is returning a type of my.test.bl.bo.location.Drawer. Scala thinks it's returning a type of my.test.bl.bo.Drawer even though CashDrawer specifically imports my.test.bl.bo.location.Drawer.
Scala will interpret it correctly only if the type names are all fully qualified.
The text was updated successfully, but these errors were encountered: