commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <bali...@centras.lt>
Subject Re: [lang] ToStringBuilder
Date Sun, 08 Sep 2002 21:50:00 GMT
Hi,
>
> [lang] cannot assume get and set naming conventions. That is for
> [beanutils]. [lang] could reflect the fields, but they would probably be
> private which can only be accessed by the setAccessible(true) workaround.
So
> I'm uncertain of this one.
It is a problem to use "setAccessible(true)", but  "SecurityExcepton" must
be document.
Reflection is designed for this kind of usage and "ToStringBuilder" can be
good
tool to hide this low level API. I think most of users will need to "print"
private fields.


--
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