accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-1622) Value.toString() doesn't respect getSize()
Date Tue, 30 Jul 2013 19:01:50 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christopher Tubbs resolved ACCUMULO-1622.
-----------------------------------------

    Resolution: Not A Problem

After further investigation, it turns out this is not a bug. I was misled by the javadoc on
get() which says "is only valid between 0 and getSize()-1, but getSize() always returns byte[].length
of the underlying byte array.
                
> Value.toString() doesn't respect getSize()
> ------------------------------------------
>
>                 Key: ACCUMULO-1622
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1622
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.4.3, 1.5.0
>            Reporter: Christopher Tubbs
>            Assignee: Christopher Tubbs
>             Fix For: 1.4.4, 1.5.1, 1.6.0
>
>
> Value.toString() uses get() to get the underlying byte array, but it does not respect
the offset/length of the byte array when constructing a new String.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message