lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3927) allow running trunk tests with IBM JRE
Date Tue, 27 Mar 2012 07:21:39 GMT


Uwe Schindler commented on LUCENE-3927:

This bug in IBM JDK goes back to Apache Harmony, where you can see how the SPI code is implemented.
It uses a HashMap instead of LinkedHashMap as lookup cache and that mixes the SPI classes
up. This is a bug, but unfortunately the API is not clear about that.

Maybe we add a "override" option to SPILoader, so you can force NamedSPILoader to return a
specific impl, ignoring the classpath? By this we can override the "Lucene3x" codec to be
"new PreflexRWCodec()" programmatically.
> allow running trunk tests with IBM JRE
> --------------------------------------
>                 Key: LUCENE-3927
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: general/test
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>         Attachments: LUCENE-3927.patch
> This is currently not possible because of how the SPI loader works,
> we cannot simulate Lucene3x codec with PreFlexRWCodec.
> But we should still allow basic testing (even though we cannot test preflex).
> After hacking around the issue, I get interesting fails with this JRE so I think its
worth it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message