Skip to content

Java fields don't override each other #8158

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

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Conversation

retronym
Copy link
Member

@retronym retronym commented Jun 19, 2019

While we model Java fields are overridable from Scala (which is
questionable, because clients can still access the field in the
super class), we definitely shouldn't treat them as such for
pairs of Java owners.

Fixes scala/bug#11575

While we model Java fields are overridable from Scala (which is
questionable, because clients can still access the field in the
super class), we definitely shouldn't treat them as such for
pairs of Java owners.
@scala-jenkins scala-jenkins added this to the 2.13.1 milestone Jun 19, 2019
@retronym retronym requested a review from adriaanm June 19, 2019 04:14
found : String
required: Array[Int]
override var counts: String = ""
^
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests the status quo, but I'm not sure that it's even sensible to let Scala vars claim to override Java fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants