Kotlin: support 2.4.20-RC - #22404
Draft
andersfugmann wants to merge 2 commits into
Draft
Conversation
andersfugmann
force-pushed
the
andersfugmann/kotlin-2.4.20rc
branch
from
August 24, 2026 08:04
c92fbc1 to
7b0c1bb
Compare
Add standalone and embeddable extractor variants for Kotlin 2.4.20-RC. Use the modern compiler plugin registrar after removal of the legacy ComponentRegistrar API, while retaining the legacy path for older compilers. Preserve source locations for generated interface forwarders, and keep Kotlin 2.4.20 GA above the supported-version boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use Kotlin 2.4.20-RC by default in the development wrapper so Kotlin 2 tests exercise the newly supported prerelease. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
andersfugmann
force-pushed
the
andersfugmann/kotlin-2.4.20rc
branch
from
August 24, 2026 08:34
7b0c1bb to
a205abc
Compare
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.
Summary
Support Kotlin 2.4.20-RC in the Kotlin extractor. Kotlin 2.4.20 GA remains unsupported.
Kotlin 2.4.20-RC removes the legacy
ComponentRegistrarcompiler API and makes the remaining K1 compatibility APIs opt-in. This change adds standalone and embeddable RC extractor variants that useCompilerPluginRegistraronly, while retaining legacy registration for older compiler variants.Generated interface forwarders retain their enclosing class locations, preserving the previous database and query behaviour despite the compiler changing those IR nodes to synthetic locations. The too-new diagnostic fixture now uses
2.4.20GA directly to verify that the release compiler remains above the supported boundary.Parent PR: github/semmle-code#56185
Validation
v2.4.20-RCcompiler passed the Kotlin basic functionality extraction test2.4.20GANo tests are disabled. The fake-override expectations are unchanged.