I had a getX and setX as GET and POST operations and it detected them as a val with custom getter and setter
a
Andreas Sinz
02/26/2018, 8:15 AM
yes, kotlin resolves methods called
getX
as getters of
x
p
Pere Casafont
02/26/2018, 9:08 AM
I understand it, but in some cases it shouldn't do it, maybe the converter should have some extra checks like looking if the methods are annotated with certain "blacklisted" annotations, or only accepting "whitelisted" ones
a
Andreas Sinz
02/26/2018, 9:11 AM
@Pere Casafont you can still use
getX
as usual
c
Czar
02/26/2018, 11:01 AM
This annoys the hell out of me when converting Spring MVC controllers or jax-rs resources from Java to Kotlin...
p
Pere Casafont
02/26/2018, 11:58 AM
this is what I mean, it's just an annoying artifact of the convertor and I was suggesting improvements to prevent it from happening