Thank you David, currently I just manually remove those testcases when
doing tests...

Hmm, seems that getName() is not allowed to override, then can we make use
of "toString()" to record the information? When judging whether a codec is
to be suppressed, check getName() first, and if it matches 'Lucene40',
check toString() to parse out the real postings format.

On Sun, Jun 3, 2012 at 5:16 AM, Dawid Weiss <dawid.we...@cs.put.poznan.pl>wrote:

> The actual source of the problem is that suppression applies to
> codec.getName and enforcing a TEST_POSTINGSFORMAT means  Lucene40Codec
> is created which always returns Lucene40 from getName(). A simple fix
> would be to allow changing the returned name for Lucene40.
> Alternatively, we can do suppression checks more intelligent...
> Suggestions welcome.
>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>


-- 
Han Jiang

EECS, Peking University, China
Every Effort Creates Smile

Senior Student

Reply via email to