[
https://issues.apache.org/jira/browse/LUCENE-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239271#comment-13239271
]
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: https://issues.apache.org/jira/browse/LUCENE-3927
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]