You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Commit Tag Bot (JIRA)" <ji...@apache.org> on 2013/03/22 17:31:22 UTC
[jira] [Commented] (LUCENE-4440) FilterCodec should take a delegate
Codec in its ctor
[ https://issues.apache.org/jira/browse/LUCENE-4440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610735#comment-13610735 ]
Commit Tag Bot commented on LUCENE-4440:
----------------------------------------
[branch_4x commit] Uwe Schindler
http://svn.apache.org/viewvc?view=revision&revision=1391143
Merged revision(s) 1391140 from lucene/dev/trunk:
LUCENE-4440: Refactor FilterCodec to get the delegate passed into ctor. Fix Codec's and PostingsFormat's forName lookup methods to throw IllegalStateException if you call those methods from the constructor of e.g. FilterCodec.
> FilterCodec should take a delegate Codec in its ctor
> ----------------------------------------------------
>
> Key: LUCENE-4440
> URL: https://issues.apache.org/jira/browse/LUCENE-4440
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/codecs
> Affects Versions: 4.0-BETA
> Reporter: Shai Erera
> Assignee: Uwe Schindler
> Priority: Blocker
> Fix For: 4.0, 4.1, 5.0
>
> Attachments: LUCENE-4440.patch, LUCENE-4440.patch
>
>
> FilterCodec has a delegate() method through which an extension can return its delegate Codec. This method is called on every Codec method. Adrien, on LUCENE-4391, failed to pass a Codec in the ctor, since he couldn't called Codec.forName().
> Instead, we should just pass e.g. new Lucene40Codec(). I'll post a patch shortly.
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org