Skip to content
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

Remove linearization requirement for override ref checks from java classes #18953

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

EugeneFlesselle
Copy link
Contributor

@EugeneFlesselle EugeneFlesselle commented Nov 17, 2023

When checking overriding/overriden pairs references, we can exclude those handled by the parent class, which requires them to be in linearization order. If the parent is java class however, this ordering should not be checked as linearization does not apply to them.

Closes #18654, closes #19007, and closes #18764

In particular, it fixes both:

But it does not fix https://scastie.scala-lang.org/3ioAIaRaQJ282KS69KugxA or any of its minimisations which have an external dependency.

@tpunder

@EugeneFlesselle EugeneFlesselle marked this pull request as ready for review November 17, 2023 14:08
@odersky odersky self-assigned this Nov 20, 2023
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

LGTM!

@odersky odersky assigned EugeneFlesselle and unassigned odersky Nov 26, 2023
@EugeneFlesselle EugeneFlesselle merged commit b1b0372 into scala:main Nov 27, 2023
19 checks passed
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
WojciechMazur added a commit that referenced this pull request Jun 23, 2024
…om java classes" to LTS (#20765)

Backports #18953 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment