Skip to content

Release Kotlin 2.1-compatible version #4292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JakeWharton opened this issue Dec 4, 2024 · 2 comments
Closed

Release Kotlin 2.1-compatible version #4292

JakeWharton opened this issue Dec 4, 2024 · 2 comments

Comments

@JakeWharton
Copy link
Contributor

JakeWharton commented Dec 4, 2024

Per KT-72471 (comment), the current release (1.9.0) depends on an old constructor signature of @SubclassOptInRequired which was changed in Kotlin 2.1 as part of stabilization.

Trying to build a JS binary with -Xpartial-linkage=disable produces the following error:

e: There is still an unbound symbol at the end of IR linkage process:
Unbound public symbol IrConstructorSymbolImpl: kotlin/SubclassOptInRequired.<init>|<init>(kotlin.reflect.KClass<out|kotlin.Annotation>){}[0]

I can enable partial linkage for now to work around the problem, but we generally are wary of doing so (especially for JS). Is it possible to get a new release built with Kotlin 2.1 so that the annotation correctly links against the new vararg-based signature and we can go back to disabling partial linkage? Thanks!

@qwwdfsad
Copy link
Member

We'll do this week, depending on how successful we are with #4296

@JakeWharton
Copy link
Contributor Author

1.10.0 is released.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants