Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F126184B0 for ; Wed, 12 Aug 2015 15:30:48 +0000 (UTC) Received: (qmail 18020 invoked by uid 500); 12 Aug 2015 15:30:47 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17927 invoked by uid 500); 12 Aug 2015 15:30:47 -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 17807 invoked by uid 99); 12 Aug 2015 15:30:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2015 15:30:47 +0000 Date: Wed, 12 Aug 2015 15:30:47 +0000 (UTC) From: "Charles Honton (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BCEL-238) Getters/setters for array should use clone 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/BCEL-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Honton updated BCEL-238: -------------------------------- Fix Version/s: 6.0 > Getters/setters for array should use clone > ------------------------------------------ > > Key: BCEL-238 > URL: https://issues.apache.org/jira/browse/BCEL-238 > Project: Commons BCEL > Issue Type: Bug > Reporter: Sebb > Fix For: 6.0 > > > Further to BCEL-237, if a getter returns a reference to a private final array, then the array contents can be corrupted. > Similarly if a setter stores an array reference without cloning it, then any holders of the original reference can subsequently change the array entries. -- This message was sent by Atlassian JIRA (v6.3.4#6332)