commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <>
Subject Re: [lang] ToStringBuilder
Date Sun, 08 Sep 2002 21:50:00 GMT
> [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.
> 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
tool to hide this low level API. I think most of users will need to "print"
private fields.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message