Skip to content

[JavaSymbols] JavaModifier.Final added to non-final Java field #4540

Description

@juliamcclellan

What is happening? What should have happened instead?

Using the org.jetbrains.dokka.analysis.enableExperimentalSymbolsJavaAnalysis property.

The DPropertys created from non-final Java fields are incorrectly getting the JavaModifier.Final modifier.

Reproducer

public class Foo {
    public static int staticNonFinalField = 0;
    public int nonStaticNonFinalField = 1;
}

Dokka version

2.3.0-dev-427

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