lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4391) Lucene40Codec methods should be final
Date Sat, 15 Sep 2012 10:08:07 GMT


Uwe Schindler commented on LUCENE-4391:

+1, I was thinking aout a similar thing, too! If somebody wants to create another codec, reusing
*some* Lucene40 stuff, he should subclass Codec directly and delegate the needed things to

The same should be done for Lucene40 PostingsFormat!
> Lucene40Codec methods should be final
> -------------------------------------
>                 Key: LUCENE-4391
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>             Fix For: 4.0
> I think all methods but {{getPostingsFormatForField}} should be made final so that users
can't create a Codec that redefines any of the formats of Lucene40 by subclassing (since the
codec name can't be overriden by subclassing, Lucene will fail at loading segments that use
such 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