commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [BeanUtils] Having a mapped property and indexed property with th e same name
Date Thu, 14 Feb 2002 07:11:02 GMT


On Thu, 14 Feb 2002, Guijt, Bart (fin) wrote:

>
> My question is: Is this the intended behaviour? My property is both mapped
> and indexed, and using method overloading to support this seems to be the
> right way to do it.
>

Unfortunately, having overloaded property getters or setters violates the
JavaBeans spec.  I would suggest changing the name of one or the other
getter to something unique.

> - Bart Guijt
>

Craig McClanahan


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message