commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: [beanutils] Exception when populate() fails for a single property
Date Wed, 23 Apr 2003 17:21:38 GMT

On Wed, 23 Apr 2003, robert burrell donkin wrote:

> Date: Wed, 23 Apr 2003 17:50:19 +0100
> From: robert burrell donkin <>
> Reply-To: Jakarta Commons Users List <>
> To: Jakarta Commons Users List <>
> Subject: Re: [beanutils] Exception when populate() fails for a single
>     property
> this seems reasonable. i've a lot on at the moment so a patch for this
> functionality would be very gratefully received. (see
> for how to do this.)

I would want to think a little more about this before implementing it, in
at least a couple of areas:

* Any changes made to BeanUtils.populate() should also
  be made to BeanUtils.copyProperties() -- in fact, the
  latter is what most people should really be using.

* It needs to be possible to find out if there were any
  errors at all in processing the property copying.

* It needs to be possible to determine *which* property
  setter(s) failed.

* It needs to be possible to distinguish between conversion
  failures on a particular property from exceptions thrown
  by the setter method.

I'm -1 on adding something that just skips conversion failures and does
not deal with all of the above issues.

> otherwise, it'd be a good idea to enter this in bugzilla so that it can be
> looked at later.
> - robert


View raw message