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

No static forwarders for bridges implementing abstract methods #7383

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Nov 1, 2018

In 2.12.7, #7035 added the bridge flag to static forwarders that are
generated for bridge methods. (2.13 generates no forwarders for bridges,
but we wanted to stay binary compatible in 2.12.)

Unfortunately the change caused even more bridges to be generated,
namely for bridge methods that implement an abstract member. Now we
exclude them again, which brings the binary interface back to the state
of 2.12.6.

Fixes scala/bug#11207

@scala-jenkins scala-jenkins added this to the 2.12.8 milestone Nov 1, 2018
@lrytz lrytz requested a review from adriaanm November 1, 2018 11:29
In 2.12.7, scala#7035 added the `bridge` flag to static forwarders that are
generated for bridge methods. (2.13 geneartes no forwarders for bridges,
but we wanted to stay binary compatible in 2.12.)

Unfortunately the change caused even more bridges to be generated,
namely for bridge methods that implement an abstract member. Now we
exclude them again, which brings the binary interface back to the state
of 2.12.6.

Fixes scala/bug#11207
@adriaanm adriaanm added the release-notes worth highlighting in next release notes label Nov 12, 2018
Copy link
Contributor

@adriaanm adriaanm left a comment

Choose a reason for hiding this comment

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

(Was trying to think if there's some higher-level invariant we could check in the forwarder gen side of things, but couldn't think of one, or some other follow-up to pester you with :-))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants