lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Payload API
Date Mon, 19 Nov 2007 20:13:05 GMT
On Nov 19, 2007 3:06 PM, Michael Busch <buschmic@gmail.com> wrote:
> Yonik Seeley wrote:
> >
> > That's not immutable if I can change the bytes in the byte[] (and it's
> > legal to do so), since it will result in the value of other payload
> > objects changing.
> >
> > -Yonik
> >
>
> True. I think what I mean here is that the caller that sets the Payload
> doesn't have to worry about filters down the chain that might change
> bytes in the byte[] array.

OK, but then my original point stands (I'm not just being pedantic :-)
The filter that is setting payloads can't use the same byte[] with a
different value each time... it must allocate a new byte[] so it
doesn't change the old one, right?

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message