You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Hertz <jh...@speakeasy.net> on 2005/03/13 20:15:48 UTC

BeanUtils hates me...

I'm sorry about how lame this question seems. I'm staring quite stunned at
what I'm seeing in my debugger right now, and I'm hoping someone can explain
the behavior.

Using Struts 1.2.4 (BeanUtils 1.7).

I have two objects: A UserEntity and a User. The User is a subclass of
UserEntity.

I call PropertyUtils.copyProperties(user, userEntity) and I'm watching a map
that was an element of the user object (and not of the userEntity) getting
blown away (almost as if the User Object itself was getting reconstructed). 

Why does this happen? (I can post to commons-user if I absolutely have to,
but I'm hoping someone can explain this...




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org