Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix for extra MetaData duplication and invalid rehydration with Kotlin #1633

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

NathanaelA
Copy link
Contributor

Fix for extra MetaData duplication and invalid rehydration with Kotlinn extensions if more than one method with the same name exists.

Description

Kotlin extensions can cause issues with hiding metadata. When upgrading to a later version of the Kotlin core this can easily be triggered.

Commit fixes these

Closes NativeScript/NativeScript#8113
Closes NativeScript/NativeScript#8709

…n extensions if more than one method with the same name exists.
@cla-bot cla-bot bot added the cla: yes label Aug 19, 2020
Copy link
Member

@rigor789 rigor789 left a comment

Choose a reason for hiding this comment

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

In case of skipped methods - is there any drawback of just skipping them? Would there be a case where a plugin may try to use a method that we skipped?

Other than my questions, the change looks good to me! 👍

@triniwiz
Copy link
Member

LGTM @NathanaelA so @rigor789 the "resolved" methods seem to only duplicate data since I can't find any place it is used (may be it was used in the past 🤷‍♂️ ). That skip I think it's a cli flag but the other skips I believe are methods/properties that are not marked as public (methods/properties that are not marked as private can still be accessed via reflection)

@NathanaelA

This comment was marked as abuse.

Copy link
Member

@rigor789 rigor789 left a comment

Choose a reason for hiding this comment

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

LGTM

@NathanaelA NathanaelA merged commit abc637b into master Aug 19, 2020
@NathanaelA NathanaelA deleted the fix_metadata_hydration branch August 19, 2020 22:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
3 participants