Skip to content
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

Recompile and publish with Ktor 3.0.0 to avoid a bug #215

Open
lsafer-meemer opened this issue Oct 19, 2024 · 0 comments
Open

Recompile and publish with Ktor 3.0.0 to avoid a bug #215

lsafer-meemer opened this issue Oct 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lsafer-meemer
Copy link

Describe the bug
Ktor 3.0.0 introduce a binary incompatible change:

ktorio/ktor@3.0.0-rc-2...main#diff-45f4dbe0240789d9647138f3e4ae66e95565a2bb987f4e5b70314c9371bf6a46L27

@JvmSynthetic
public inline fun <reified T : Any> AttributeKey(name: String): AttributeKey<T> =
//    AttributeKey(name, typeOf<T>()) <-- this removed
    AttributeKey(name, typeInfo<T>()) // <-- this added

public data class AttributeKey<T : Any> @JvmOverloads constructor(
    public val name: String,
//    private val type: KType = typeOf<Any>(), <-- this removed
    private val type: TypeInfo = typeInfo<Any>(), // <-- this added
) {

To Reproduce
Steps to reproduce the behavior:

  1. Kotlin version
  2. Gradle version
  3. OS (Or at least KMP platform)
  4. Minimal reproducer in code
  5. Error description
  6. And so on

Expected behavior

Additional context

Just recompile and publish a new version

@lsafer-meemer lsafer-meemer added the bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants