[ https://issues.apache.org/jira/browse/LUCENE-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010702#comment-13010702 ]
Uwe Schindler edited comment on LUCENE-2989 at 3/24/11 3:31 PM: ---------------------------------------------------------------- The issue looks like a bug in IBM's Collections class, but it isn't. The List returned by emptyList() does not implement RandomAccess. I fixed the test (unfortunately it's clear that emptyList() should return a random access list, but it's not in the spec, so it's not really IBM's fault). The fix is to use a realy empty Array and wrap it with Arrays.asList(). Robert can you test? was (Author: thetaphi): The issue is a bug in IBM's Collections class. The List returned by emptyList() does not implement RandomAccess. I fixed the test (unfortunately it's clear that emptyList() should return a random access list, but it's not in the spec, so it's not really IBM's fault). The fix is to use a realy empty Array and wrap it with Arrays.asList(). Robert can you test? > TestCollectionUtil fails on IBM JRE > ----------------------------------- > > Key: LUCENE-2989 > URL: https://issues.apache.org/jira/browse/LUCENE-2989 > Project: Lucene - Java > Issue Type: Bug > Environment: java version "1.6.0" > Java(TM) SE Runtime Environment (build pwi3260sr1-20080416_01(SR1)) > IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows Vista x86-32 > jvmwi3260-20080415_18762 (JIT enabled, AOT enabled) > J9VM - 20080415_018762_lHdSMr > JIT - r9_20080415_1520 > GC - 20080415_AA) > JCL - 20080412_01 > Reporter: Robert Muir > Assignee: Uwe Schindler > Attachments: LUCENE-2989.patch > > > [junit] Testcase: > testEmptyArraySort(org.apache.lucene.util.TestCollectionUtil): Caused an > ERROR > [junit] CollectionUtil can only sort random access lists in-place. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org