Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C081417A93 for ; Wed, 18 Mar 2015 19:01:43 +0000 (UTC) Received: (qmail 40204 invoked by uid 500); 18 Mar 2015 19:01:38 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 40156 invoked by uid 500); 18 Mar 2015 19:01:38 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 40144 invoked by uid 99); 18 Mar 2015 19:01:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 19:01:38 +0000 Date: Wed, 18 Mar 2015 19:01:38 +0000 (UTC) From: "Sean Busbey (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-13273) Make Result.EMPTY_RESULT read-only; currently it can be modified 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/HBASE-13273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Busbey updated HBASE-13273: -------------------------------- Labels: beginner (was: ) > Make Result.EMPTY_RESULT read-only; currently it can be modified > ---------------------------------------------------------------- > > Key: HBASE-13273 > URL: https://issues.apache.org/jira/browse/HBASE-13273 > Project: HBase > Issue Type: Bug > Affects Versions: 0.98.0, 1.0.0 > Reporter: stack > Labels: beginner > Fix For: 2.0.0, 1.0.1, 1.1.0, 0.98.12 > > > Again from [~larsgeorge] > Result result2 = Result.EMPTY_RESULT; > System.out.println(result2); > result2.copyFrom(result1); > System.out.println(result2); > "What do you think happens when result1 has cells? Yep, you just modified the shared public EMPTY_RESULT to be not empty anymore." > Fix. Result should be non-modifiable post-construction. -- This message was sent by Atlassian JIRA (v6.3.4#6332)