https://kotlinlang.org logo
Title
v

vngantk

12/10/2018, 2:40 AM
Is there a way I can disable synthetic property extensions generated for getter methods of java classes? I want to define my property extension having a name conflicting with the original getter method of the java class.
g

gildor

12/10/2018, 2:42 AM
synthetic property of java classes? What do you mean? about auto-properties, like
javaClass.getName()
->
javaClass.name
?
v

vngantk

12/10/2018, 2:43 AM
Yes
I wanted to define a property extension called “name” but it does thing more than just the original getName() method. However the newly defined “name” extension is shadowed by the original getName() method.
g

gildor

12/10/2018, 2:50 AM
No, there is no way to do that
v

vngantk

12/10/2018, 2:51 AM
Okay, thanks