Skip to content

Kotlin: support 2.4.20-RC - #22404

Draft
andersfugmann wants to merge 3 commits into
mainfrom
andersfugmann/kotlin-2.4.20rc
Draft

Kotlin: support 2.4.20-RC#22404
andersfugmann wants to merge 3 commits into
mainfrom
andersfugmann/kotlin-2.4.20rc

Conversation

@andersfugmann

@andersfugmann andersfugmann commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Support Kotlin 2.4.20-RC in the Kotlin extractor.

Kotlin 2.4.20-RC removes the legacy ComponentRegistrar compiler API and makes the remaining K1 compatibility APIs opt-in. This change adds a 2.4.20-RC extractor variant that uses CompilerPluginRegistrar only, keeps the legacy service for older compiler variants, and updates the generated expectations affected by changed fake-override IR locations and declaration ordering.

Parent PR: github/semmle-code#56185

Validation

  • Built the standalone and embeddable 2.4.20-RC extractor variants
  • All 3,309 Kotlin 2 tests passed with 2.4.20-RC, run in eight shards
  • All 3,309 Kotlin 1 tests passed with 2.3.20, run in eight shards
  • All 36 Kotlin all-platform extraction tests passed
  • All 63 Kotlin all-platform QL integration tests passed
  • The published v2.4.20-RC compiler passed the Kotlin basic functionality extraction test
  • The too-new diagnostic integration test passed with the new exclusive limit

No tests are disabled.

andersfugmann and others added 3 commits August 21, 2026 13:43
Add a compiler-specific extractor variant for Kotlin 2.4.20-RC. Use the modern compiler plugin registrar after removal of the legacy ComponentRegistrar API, opt in to the remaining K1 compatibility APIs, and update the generated expectations for changed fake-override IR locations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Select the supported release candidate by default and update the generated too-new diagnostic expectation for the new exclusive version bound.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate the inherited interface default expectation for Kotlin 2.4.20-RC, which reports compiler-generated forwarders at synthetic locations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant