Skip to content

No static forwarders for bridges implementing abstract methods#7383

Merged
adriaanm merged 1 commit intoscala:2.12.xfrom
lrytz:b11207
Nov 12, 2018
Merged

No static forwarders for bridges implementing abstract methods#7383
adriaanm merged 1 commit intoscala:2.12.xfrom
lrytz:b11207

Conversation

@lrytz
Copy link
Copy Markdown
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
Copy Markdown
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