Skip to content

Bridge: Use real override as super bridge target #5417

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scaventz
Copy link
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

@udalov udalov self-assigned this Mar 27, 2025
@udalov udalov added the Backend label Mar 27, 2025
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
Copy link

@MrWoods024 MrWoods024 left a comment

Choose a reason for hiding this comment

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

👍

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.

None yet

3 participants