Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 98016 invoked from network); 24 Mar 2011 18:29:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 18:29:16 -0000 Received: (qmail 90322 invoked by uid 500); 24 Mar 2011 18:29:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 90259 invoked by uid 500); 24 Mar 2011 18:29:15 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 90252 invoked by uid 99); 24 Mar 2011 18:29:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 18:29:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 18:29:06 +0000 Received: by vws7 with SMTP id 7so351168vws.35 for ; Thu, 24 Mar 2011 11:28:45 -0700 (PDT) Received: by 10.52.0.43 with SMTP id 11mr3234172vdb.283.1300991325555; Thu, 24 Mar 2011 11:28:45 -0700 (PDT) Received: from bester.local ([65.78.136.75]) by mx.google.com with ESMTPS id x14sm56005vdt.42.2011.03.24.11.28.43 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 11:28:44 -0700 (PDT) Date: Thu, 24 Mar 2011 11:28:41 -0700 (PDT) From: Chris Hostetter To: dev@lucene.apache.org Subject: Re: [jira] [Updated] (LUCENE-2989) TestCollectionUtil fails on IBM JRE In-Reply-To: <4584418.8492.1300980006173.JavaMail.tomcat@hel.zones.apache.org> Message-ID: References: <4584418.8492.1300980006173.JavaMail.tomcat@hel.zones.apache.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : 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? -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org