Open atyrin opened 4 days ago
Create a Java class with a field with getter/setter that will be represented in Kotlin as one property.
public class JavaParent { private String foo; public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } }
Create a Kotlin class that will inherit the Java class
class Child: JavaParent()
For K1 Kotlin classes will looks like (no open modifier for foo):
foo
For K2 it shown the modifier:
[NON_FINAL_MEMBER_IN_FINAL_CLASS]
Child
[NOTHING_TO_OVERRIDE]
Related issue: #3611
Create a Java class with a field with getter/setter that will be represented in Kotlin as one property.
Create a Kotlin class that will inherit the Java class
For K1 Kotlin classes will looks like (no open modifier for
foo
):For K2 it shown the modifier:
[NON_FINAL_MEMBER_IN_FINAL_CLASS]
)Child
an open class then anyway we cannot override it in a child class ofChild
. ([NOTHING_TO_OVERRIDE]
)