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

Use property descriptor impl for java properties #217

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

yigit
Copy link
Collaborator

@yigit yigit commented Dec 29, 2020

When a java class implements a kotlin interface that declared a property,
the descriptor could resolve to a PsiMethod for which we don't have a
property implementation (because there is another matching method so single
method is not enough). For those cases, fall back to the descriptor implementation.

Test: allFunctions.kt
Fixes: #216

When a java class implements a kotlin interface that declared a property,
the descriptor could resolve to a PsiMethod for which we don't have a
property implementation (because there is another matching method so single
method is not enough). For those cases, fall back to the descriptor implementation.

Test: allFunctions.kt
Fixes: google#216
@yigit yigit requested a review from ting-yuan December 29, 2020 05:08
Copy link
Collaborator

@ting-yuan ting-yuan left a comment

Choose a reason for hiding this comment

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

Thanks for catching and fixing this non-obvious case. From Kotlin's point of view it is a property.

@ting-yuan ting-yuan merged commit 2360958 into google:master Dec 29, 2020
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.

Java implementation of a kotlin interface triggers illegal state exception when accessing properties
2 participants