lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: [jira] [Updated] (LUCENE-2989) TestCollectionUtil fails on IBM JRE
Date Thu, 24 Mar 2011 18:28:41 GMT

: 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().

Should this make us rethink using Collections.emptyList() in the code 
base?  Should we be roling our own?


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

View raw message