Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 9908 invoked from network); 9 Dec 2010 08:58:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 08:58:25 -0000 Received: (qmail 84767 invoked by uid 500); 9 Dec 2010 08:58:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 84517 invoked by uid 500); 9 Dec 2010 08:58:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 84506 invoked by uid 99); 9 Dec 2010 08:58:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 08:58:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 08:58:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB98w2eP009127 for ; Thu, 9 Dec 2010 08:58:02 GMT Message-ID: <31697487.33291291885082582.JavaMail.jira@thor> Date: Thu, 9 Dec 2010 03:58:02 -0500 (EST) From: "Joerg Schaible (JIRA)" To: issues@commons.apache.org Subject: [jira] Issue Comment Edited: (LANG-307) CloneUtils - utility class to enable cloning via various different mechanisms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.