With current translation, where @BeanProperty declaration is done outside of argument, , Scala compiler says when the property is accessed:
ambiguous reference to overloaded definition, both method setProp in class C of type ( prop: T1)Unit and method setProp in class C of type (x$1: T1)Unit match argument types (T1)
There is a problem when in Java source there is a javabean property "prop" which is also in constructor.
// Java: class T1 {} class C { C( T1 prop ) { setProp(prop); }; void setProp( T1 prop ) { this.prop = prop }; T1 getProp() { return prop; }; }
What SHOULD be produced is this :
class C( @BeanProperty var prop : T1 ) { }
With current translation, where @BeanProperty declaration is done outside of argument, , Scala compiler says when the property is accessed:
ambiguous reference to overloaded definition, both method setProp in class C of type ( prop: T1)Unit and method setProp in class C of type (x$1: T1)Unit match argument types (T1)