accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2487) Value implementation provides conflicting statements
Date Sat, 22 Mar 2014 01:03:02 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943811#comment-13943811
] 

ASF subversion and git services commented on ACCUMULO-2487:
-----------------------------------------------------------

Commit f2920c266ff956c190eda86deb07b4ef590d1965 in accumulo's branch refs/heads/1.6.0-SNAPSHOT
from [~busbey]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=f2920c2 ]

ACCUMULO-2487 match Value implementation to javadocs. check for null args.


> 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)

Mime
View raw message