Skip to content

[JavaSymbols] Java getter and setter documentation is lost #4572

Description

@juliamcclellan

What is happening? What should have happened instead?

Relates to #4513

Without the experimental java symbol analysis flag enabled, javadoc for getters and setters appears on the getter and setter DFunctions of a DProperty. When experimental symbol analysis is enabled, the getter and setter DFunctions have empty documentation.

Reproducer

public class Foo {
    private int currentState = 0;
    /**
     * Gets the state.
     */
    public int getCurrentState() { return currentState; }
    /**
     * Sets the state.
     * @param state new state
     */
    public void setCurrentState(int state) { currentState = state; }
}

Dokka version

2.3.0-dev-434

Kotlin Gradle Plugin (KGP) version

No response

Android Gradle Plugin (AGP) version (if applicable)

No response

Build tool

Gradle

Project type

  • Kotlin Multiplatform (KMP)
  • Android
  • JVM
  • Other

Anything else? (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions