Skip to content

[K2] Inconsistent member representation for Java/Kotlin files #3338

@atyrin

Description

@atyrin

Parent.java:

public class Parent {
    protected int protectedPropertyWithPublicGetterPublicSetter = 0;

    public int getProtectedPropertyWithPublicGetterPublicSetter() {
        return protectedPropertyWithPublicGetterPublicSetter;
    }

    public void setProtectedPropertyWithPublicGetterPublicSetter(int protectedPropertyWithPublicGetterPublicSetter) {
        this.protectedPropertyWithPublicGetterPublicSetter = protectedPropertyWithPublicGetterPublicSetter;
    }
}

Child.kt

open class Child: Parent()

K1

Java and Kotlin:

image

K2

Java
The same as in K1.

Kotlin
Inheritor getter/setter methods are omitted.
image

Representation in K2 for Kotlin files looks correct (as no getters/setters are available in the code). But it seems for the Java class, it should be the same.

Installation

  • Dokka version: 1.9.20

Parent: #3328

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguage: JavaIssue/PR related to the Java language feature/analysis/docstopic: K2Issues / PRs that are related to the K2 migration. See #2888

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions