Skip to content

Fix #1905: Detect case where bridge would clash with the member #3710

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 2 commits into from
Jan 13, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 29, 2017

With value classes it is possible that a bridge is needed because the semi erased
types of a member and its overridden method differ, yet the fully erased types
of the member and the bridge are the same. With this commit we flag this situation
as an error. Before it generated a ClassCastException at runtime instead.

With value classes it is possible that a bridge is needed because the semi erased
types of a member and its overridden method differ, yet the fully erased types
of the member and the bridge are the same. With this commit we flag this situation
as an error. Before it generated a ClassCastException at runtime instead.
Print a reference to a parameter with just the name (e.g. "A") instead
of "C.this.A".
@odersky
Copy link
Contributor Author

odersky commented Dec 29, 2017

test performance please

@dottybot
Copy link
Member

performance test scheduled: 1 job(s) in queue, 0 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3710/ to see the changes.

Benchmarks is based on merging with master (1080529)

@odersky odersky merged commit b862758 into scala:master Jan 13, 2018
@allanrenucci allanrenucci deleted the fix-#2994 branch January 14, 2018 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants