commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-307) CloneUtils - utility class to enable cloning via various different mechanisms
Date Thu, 09 Dec 2010 08:58:01 GMT

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

Joerg Schaible commented on LANG-307:
-------------------------------------

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.


Mime
View raw message