@BeanProperty var x: Int = _
you get four distinct methods: getX, setX, x, and x_=. You cannot
override x or x_= in a subclass--you get an error "cannot override a
mutable variable". That makes it impossible for you to link the Java
getX/setX methods with the Scala counterparts.
I have to agree that this is less than ideal. When I use
@BeanProperty, I pretend the Scala getter/setter methods don't exist.
Perhaps it would be nice if I could do
@BeanProperty private var x: Int = _
so that this would be more enforceable, but that's not legal. It
probably should be, and it should generate public JavaBeans
getters/setters, which the Scala folks will find weird.
Cheers,
Cay
2011/3/17 Robin Palotai <m.palot...@gmail.com>: