lucene-dev mailing list archives

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


Robert Muir commented on LUCENE-3927:

if (!(Codec.forName("Lucene3x") instanceof PreFlexRWCodec)) {
        System.err.println("ERROR: Your VM's java.util.ServiceLoader implementation is buggy"+
          " and does not respect classpath order, please report this to the vendor.");

I think this could be confusing to people using Sun JVMs, but just with the wrong
classpath? There is currently an assert for this:
assert (codec instanceof PreFlexRWCodec) : "fix your classpath to have tests-framework.jar
before lucene-core.jar";

So I think we should just be careful about the warning to not confuse (maybe check Constants.JRE_VENDOR
make sure we send the correct message?)

> 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, 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