Skip to content

[KSP2] functionKind is MEMBER for static method in interface in Java #2410

@bacecek

Description

@bacecek

For the following Java code:

public interface MyModule {
    static int provides() {
        return 1;
    }
}

KSClassDeclaration.functionKind returns FunctionKind.MEMBER, but modifiers contains Modifier.JAVA_STATIC

With KSP1 KSClassDeclarationJavaImpl returns FunctionKint.STATIC

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