New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[K2] Inconsistent member representation for Java/Kotlin files #3338
Comments
Related: #3128 |
Blocked by #3576 |
The summary based on the spike #3576: We are not sure about the case with a private field: public class A {
private int prop = 1;
public int getProp() {
return prop;
}
public void setProp(int a) {
this.prop = a;
}
} Should Dokka display accessors here?! Despite the counter-example below, It seems a field and its accessors should be an united entity. class B : A() {
override fun getProp(): Int {
....
}
override fun setProp(a: Int) {
...
}
} |
Parent.java
:Child.kt
In K1, both pages look the same:
In K2, the page for Java parent looks the same as in K1. But for Kotlin, inheritor getter/setter methods are omitted.
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
Parent: #3328
The text was updated successfully, but these errors were encountered: