mirror of
https://github.com/apple/pkl.git
synced 2026-06-01 19:40:52 +02:00
Improve interop with other JVM languages by annotating data classes with @JvmOverloads #316
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?
Originally created by @DamianReeves on GitHub (Jul 9, 2025).
Interop with other JVM languages would be improved if the
@JvmOverloadsannotation was added to the library in places where default parameters are used, such as the following:https://github.com/apple/pkl/blob/48ad4386c878b89dfaeef293490dd3398bbc4afc/pkl-codegen-java/src/main/kotlin/org/pkl/codegen/java/CliJavaCodeGeneratorOptions.kt#L22
https://github.com/apple/pkl/blob/48ad4386c878b89dfaeef293490dd3398bbc4afc/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliBaseOptions.kt#L29
https://github.com/apple/pkl/blob/48ad4386c878b89dfaeef293490dd3398bbc4afc/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliTestOptions.kt#L20