lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3224) bugs in ByteArrayDataInput
Date Tue, 21 Jun 2011 17:19:47 GMT


Michael McCandless updated LUCENE-3224:

    Attachment: LUCENE-3224.patch


> bugs in ByteArrayDataInput
> --------------------------
>                 Key: LUCENE-3224
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
>         Attachments: LUCENE-3224.patch
> ByteArrayDataInput has a byte[] ctor, but it doesn't actually work (some things like
readVint will work, others will fail due to asserts).
> The problem is it doesnt set things like limit in the ctor... I think the ctor should
call reset()
> Most code using this passes null to the ctor to initialize it, then uses reset(), instead
they could just call ByteArrayInput(BytesRef.EMPTY_BYTES) if they want to do that.
> finally, reset()'s limit looks like it should be offset + len

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message