[ 
https://issues.apache.org/jira/browse/LANG-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969665#action_12969665
 ] 

Joerg Schaible edited comment on LANG-307 at 12/9/10 3:57 AM:
--------------------------------------------------------------

You forget that cloning in this way is actually dangerous if you have objects 
in your graph that manage system resources like File or Socket or - even worse 
- have a pointer to native memory like BufferedImage. Cloning the last one in 
this way will corrupt your JVM. Maybe it is better to use a more (and very 
fast) specialized library instead: http://robust-it.co.uk/clone/

      was (Author: joehni):
    You forget that cloning in this way is actually dangerous if you have 
objects in your graph that manage system resources like File or Socket or - 
even worse - have a pointer to native memory like BuferedImage. Clonging the 
last one in this way will corrupt your JVM. Maybe it is better to use a more 
(and very fast) specialized library instead: http://robust-it.co.uk/clone/
  
> CloneUtils - utility class to enable cloning via various different mechanisms
> -----------------------------------------------------------------------------
>
>                 Key: LANG-307
>                 URL: https://issues.apache.org/jira/browse/LANG-307
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 3.1
>
>         Attachments: AutoClone.java, lang-307.patch
>
>
> Taken from the tasks.html. No idea if we want to do it or not.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to