commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SANDBOX-396) [BeanUtils2] Implement clone() on DefaultBeanAccessor
Date Mon, 20 Feb 2012 13:40:34 GMT

     [ https://issues.apache.org/jira/browse/SANDBOX-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter updated SANDBOX-396:
------------------------------------

    Attachment: SANDBOX-396.txt

I've attached a patch for this issue.

There is one thing worth mentioning: We had a discussion about the behavior of {{cloneBean()}}
regarding Maps on the ML. At first I thought, that passing a Map to {{cloneBean()}} in BeanUtils1
would return an exact copy of that  map. I've looked at BeanUtils1 once again and my first
impression was wrong. For this reason there is no special handling for Maps implemented in
the patch (since that is the same behavior as in BeanUtils1)

Regards,
Benedikt
                
> [BeanUtils2] Implement clone() on DefaultBeanAccessor
> -----------------------------------------------------
>
>                 Key: SANDBOX-396
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-396
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: BeanUtils2
>    Affects Versions: Nightly Builds
>            Reporter: Benedikt Ritter
>         Attachments: SANDBOX-396.txt
>
>
> Implement {{clone()}} on DefaultBeanAccessor:
> * create a new instance of the same type as the bean encapsulated by the Accessor
> * create a {{DefaultBeanAccessor}} for the new instance
> * call populate on the new {{DefaultBeanAccessor}} with {{this.describe()}} as argument
> * return the clone

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message