Generate Kotlin metadata ABI and JVM bytecode versions#3088
Merged
Conversation
0xnm
force-pushed
the
nogorodnikov/generate-compiled-files-abi-version
branch
from
December 30, 2025 17:27
7751e47 to
d625aee
Compare
0xnm
marked this pull request as ready for review
December 30, 2025 17:27
|
🎯 Code Coverage 🔗 Commit SHA: 7f648b1 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3088 +/- ##
===========================================
- Coverage 71.44% 71.44% -0.00%
===========================================
Files 881 881
Lines 32397 32397
Branches 5462 5462
===========================================
- Hits 23144 23143 -1
+ Misses 7710 7704 -6
- Partials 1543 1550 +7 🚀 New features to boost your workflow:
|
0xnm
force-pushed
the
nogorodnikov/generate-compiled-files-abi-version
branch
from
December 31, 2025 08:34
d625aee to
7f648b1
Compare
aleksandr-gringauz
approved these changes
Dec 31, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Kotlin adds metadata in a
Metadataannotation of the generated Java class file and overall this metadata has version, making it incompatible for older compiler versions.Read ABI changelog here https://github.com/JetBrains/kotlin/blob/master/compiler/util-klib/KotlinAbiVersionBumpHistory.md.
This PR adds a check to list ABI (metadata) version in the generated class files, so that we are aware about any breaking change -> this will force customers to use newer Kotlin version.
Plus JVM bytecode version is added as well.
Review checklist (to be filled by reviewers)