Skip to content

KSClassDeclaration.getAllProperties returns not existing "_hashCode" and "typeInfo" properties for wasmJs platform #2443

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

Open
AngeloSalvade opened this issue May 8, 2025 · 1 comment

Comments

@AngeloSalvade
Copy link

KSClassDeclaration.getAllProperties returns not existing "_hashCode" and "typeInfo" properties for wasmJs platform.
The other platform work correctly. These properties are not returned.
ksp version: 2.1.20-2.0.1

@AngeloSalvade
Copy link
Author

These properties are defined as internal in class Any and should not be visible in KSP.

public open class Any @kotlin.wasm.internal.WasmPrimitiveConstructor public constructor() {
    internal final var typeInfo: kotlin.Int /* compiled code */

    internal final var _hashCode: kotlin.Int /* compiled code */

    public open operator fun equals(other: kotlin.Any?): kotlin.Boolean { /* compiled code */ }

    public open fun hashCode(): kotlin.Int { /* compiled code */ }

    public open fun toString(): kotlin.String { /* compiled code */ }
}

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

1 participant