mirror of
https://github.com/apple/pkl.git
synced 2026-03-01 21:57:43 +01:00
[PR #721] [MERGED] codegen-kotlin: Support Java serialization of module classes #693
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/721
Author: @odenix
Created: 10/21/2024
Status: ✅ Merged
Merged: 10/25/2024
Merged by: @bioball
Base:
main← Head:kotlin-module-serializable📝 Commits (1)
5804780codegen-kotlin: Support Java serialization of module classes📊 Changes
2 files changed (+113 additions, -76 deletions)
View changed files
📝
pkl-codegen-kotlin/src/main/kotlin/org/pkl/codegen/kotlin/KotlinCodeGenerator.kt(+74 -76)📝
pkl-codegen-kotlin/src/test/kotlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt(+39 -0)📄 Description
Motivation:
Changes:
appendPropertymethod and serialization codeinto new method
generateCompanionRelatedCode.Result:
Java serialization is also supported for module classes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.