Skip to content

Bridge: Use real override as super bridge target - #5417

Closed
Xin Wang (scaventz) wants to merge 2 commits into
JetBrains:masterfrom
scaventz:KT-72039
Closed

Xin Wang (scaventz) wants to merge 2 commits into
JetBrains:masterfrom
scaventz:KT-72039

Conversation

@scaventz

Copy link
Copy Markdown
Contributor

We don't generate bridges for Java classes, for a case like KT-72039, even though there is a real override keySet()LKeySetView; in ConcurrentHashMap, our Kotlin class Test1 always see it as a fake override by using overriddenFromClass, just because ConcurrentHashMap is not the direct super type of Test1.

Fixes KT-72039

@MrWoods024 MrWoods24 (MrWoods024) left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Backend

Xin Wang (scaventz) and others added 2 commits July 31, 2025 11:47
We don't generate bridges for Java classes, for a case like KT-72039,
even though there is a real override `keySet()LKeySetView;` in
`ConcurrentHashMap`, our Kotlin class `Test1` always sees it as a fake
override by using `overriddenFromClass`, just because
`ConcurrentHashMap` is not the direct super type of `Test1`.

 #KT-72039 Fixed
@udalov

Copy link
Copy Markdown
Member

Merged in 46b69aa. Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants