Skip to content

Recognise inherited implementations in Elements.overrides. - #520

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_992334677
Oct 6, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_992334677

Conversation

@copybara-service

Copy link
Copy Markdown

Recognise inherited implementations in Elements.overrides.

TurbineElements.overrides only handled direct overrides, where the
overrider's class is a subtype of the overridden method's class. A concrete
method that a class inherits from its superclass can also implement an abstract
or default method of a superinterface that the superclass doesn't implement
(JLS 8.4.8.1), e.g. AbstractQueue.add(E) in LinkedBlockingQueue.

`TurbineElements.overrides` only handled direct overrides, where the
overrider's class is a subtype of the overridden method's class. A concrete
method that a class inherits from its superclass can also implement an abstract
or default method of a superinterface that the superclass doesn't implement
(JLS 8.4.8.1), e.g. `AbstractQueue.add(E)` in `LinkedBlockingQueue`.

PiperOrigin-RevId: 994295456
@copybara-service
copybara-service Bot merged commit c99f73a into main Oct 6, 2026
6 of 7 checks passed
@copybara-service
copybara-service Bot deleted the test_992334677 branch October 6, 2026 10:59
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.

1 participant