Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0FDE1070C for ; Sat, 22 Mar 2014 01:04:47 +0000 (UTC) Received: (qmail 34550 invoked by uid 500); 22 Mar 2014 01:04:44 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 34523 invoked by uid 500); 22 Mar 2014 01:04:44 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 34502 invoked by uid 99); 22 Mar 2014 01:04:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 01:04:43 +0000 Date: Sat, 22 Mar 2014 01:04:43 +0000 (UTC) From: "Sean Busbey (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ACCUMULO-2487) Value implementation provides conflicting statements 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/ACCUMULO-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Busbey resolved ACCUMULO-2487. ----------------------------------- Resolution: Fixed > Value implementation provides conflicting statements > ---------------------------------------------------- > > Key: ACCUMULO-2487 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2487 > Project: Accumulo > Issue Type: Bug > Components: client > Reporter: Mike Drob > Assignee: Sean Busbey > Priority: Critical > Fix For: 1.6.0 > > > The javadoc for the no-arg constructor for {{Value}} states that it "Creates a zero-size sequence." However, the implementation of get will error in this case. > {code} > public byte[] get() { > if (this.value == null) { > throw new IllegalStateException("Uninitialized. Null constructor " + "called w/o accompanying readFields invocation"); > } > {code} > Either we need to change the javadoc to be more explicit or change the behaviour of various accessors in the class. I would consider both solutions to be breaking of the API contract since we are changing what clients can expect from us. -- This message was sent by Atlassian JIRA (v6.2#6252)