Skip to content

Inlined JVM name is not correct #1493

@dstepanov

Description

@dstepanov

Currently, KSP returns the incorrect mangled JVM name of the inlined method.

It's breaking Micronaut integration:
micronaut-projects/micronaut-core#9716

The problem is in ResolverImpl:

    private val typeMapper = KotlinTypeMapper(
        BindingContext.EMPTY, ClassBuilderMode.LIGHT_CLASSES,
        module.name.getNonSpecialIdentifier(),
        KotlinTypeMapper.LANGUAGE_VERSION_SETTINGS_DEFAULT, // TODO use proper LanguageVersionSettings
        true
    )

Type mapper is created with useOldInlineClassesManglingScheme - true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions