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

[KT-75060] Fir FileBasedKotlinClass parse innerclass with 1.1.16 metadata library compatibility #5403

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

Conversation

larryxiao625
Copy link
Contributor

@larryxiao625 larryxiao625 commented Feb 7, 2025

When using a project dependency library which compiled by 1.3.72 or below kotlin version, metadata is 1.1.6 or below, an issue occurs when referencing an enum defined as an inner class using in the annotation. This leads to an issue similar to: Unresolved reference: <Strange deserialized enum value: androidx/annotation/RestrictTo/Scope.LIBRARY>#' type=androidx.annotation.RestrictTo.Scope

Caused by metadata 1.1.6 and below library missing the innerclass struct for annotation type, add a fallback logic for internal class parsing to convert the jvm classname for $ symbol

See KT-75060 Issue with FileBasedKotlinClass InnerClass Parse with 1.1.16 Metadata Compatibility

^KT-75060 Fixed

@larryxiao625 larryxiao625 force-pushed the KT-75060/annotation_inner_type_annotation_compatibility branch from 217d782 to ff67271 Compare February 7, 2025 15:52
When using a project dependency library which compiled by 1.3.72 or below kotlin version, metadata is 1.1.6 or below, an issue occurs when referencing an enum defined as an inner class using in the annotation. This leads to an issue similar to:
Unresolved reference: <Strange deserialized enum value: androidx/annotation/RestrictTo/Scope.LIBRARY>#' type=androidx.annotation.RestrictTo.Scope

Caused by metadata 1.1.6 and below library missing the innerclass struct for annotation type, add a fallback logic for internal class parsing to convert the jvm classname for $ symbol

See KT-75060 Issue with FileBasedKotlinClass InnerClass Parse with 1.1.16 Metadata Compatibility

^KT-75060 Fixed
@larryxiao625 larryxiao625 force-pushed the KT-75060/annotation_inner_type_annotation_compatibility branch from ff67271 to ab5d869 Compare February 7, 2025 15:53
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