You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2015/03/18 19:52:38 UTC

[jira] [Created] (HBASE-13273) Make Result.EMPTY_RESULT read-only; currently it can be modified

stack created HBASE-13273:
-----------------------------

             Summary: 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
            Reporter: stack


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)