[
https://issues.apache.org/jira/browse/LUCENE-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464704#comment-13464704
]
Shai Erera commented on LUCENE-4391:
------------------------------------
I really don't like the delegate() solution ... every method calls this, which
in turn calls Codec.forName(). I have a solution and a simple patch to this.
I'll open a separate issue as it's focused just on FilterCodec.
> Lucene40Codec methods should be final
> -------------------------------------
>
> Key: LUCENE-4391
> URL: https://issues.apache.org/jira/browse/LUCENE-4391
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Fix For: 4.0
>
> Attachments: LUCENE-4391.patch, LUCENE-4391.patch
>
>
> 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: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]