-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KxSerialization] Fixed initialization error for keep generated seria…
…lizer feature with sealed classes When the heir of a sealed class contains this sealed class as a property, cyclic initialization occurs due to the fact that the SealedClassSerializer in the constructor accesses all passed subclass serializers. Initialization order: Parent Sealed class serializer \/ Create instance of SealedClassSerializer for Parent Sealed \/ Access subclass serializer in constructor of SealedClassSerializer \/ Call ChildClass.Compaion.generatedSerializer() \/ Init ChildClass \/ cache child serializers of ChildClass \/ Create instance of SealedClassSerializer for Parent Sealed ---> /\ Fixes #KT-70516 Merge-request: KT-MR-17421 Merged-by: Sergei Shanshin <Sergey.Shanshin@jetbrains.com>
- Loading branch information
1 parent
a79c4ba
commit 800b8b5
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters