-
Notifications
You must be signed in to change notification settings - Fork 620
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
SerialInfo annotations on enum classes are not saved in 1.7.20+ #2121
Labels
Comments
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Dec 13, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Dec 14, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Dec 15, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Dec 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
SerialInfo annotations on enum classes (not members!) were saved up to Kotlin 1.7.10, but starting from 1.7.20 they're lost.
To Reproduce
Expected behavior
On 1.7.10 test printed:
On 1.7.20 test prints:
Reason:
In 1.7.20, factory function
kotlinx.serialization/core/commonMain/src/kotlinx/serialization/internal/Enums.kt
Line 61 in 9658ea7
$serializer
for enums. It doesn't have slots for class-level annotations.The text was updated successfully, but these errors were encountered: