lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4423) DocumentStoredFieldVisitor.binaryField ignores offset and length
Date Tue, 25 Sep 2012 12:50:07 GMT


Robert Muir commented on LUCENE-4423:

Its also possible to add a test for this issue: we could do it either in AssertingCodec or
have it copy the bytes to a new byte[] { "BOGUS" + <original> } and set the offset/length.

This way we know if any visitors are broken. (even though the current offset and length are
superfluous imo,
we should ensure visitors respect the contract).
> DocumentStoredFieldVisitor.binaryField ignores offset and length
> ----------------------------------------------------------------
>                 Key: LUCENE-4423
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/store
>            Reporter: Adrien Grand
>         Attachments: LUCENE-4423.patch, LUCENE-4423.patch
> This is no problem with SimpleText and Lucene40 since in their cases, offset is always
0 and length the length of the byte[] array, but it might break with custom codecs.

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:

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

View raw message