Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 6800 invoked from network); 9 Mar 2011 09:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 09:37:22 -0000 Received: (qmail 13625 invoked by uid 500); 9 Mar 2011 09:37:21 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 13464 invoked by uid 500); 9 Mar 2011 09:37:21 -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 13456 invoked by uid 99); 9 Mar 2011 09:37:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 09:37:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 09:37:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 665F23A07CC for ; Wed, 9 Mar 2011 09:36:59 +0000 (UTC) Date: Wed, 9 Mar 2011 09:36:59 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: <215245092.7415.1299663419415.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1055538677.3372.1299548040731.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (LUCENE-2953) PriorityQueue is inheriently broken if subclass attempts to use "heap" w/generic T bound to anything other then "Object" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler resolved LUCENE-2953. ----------------------------------- Resolution: Fixed Lucene Fields: [New, Patch Available] (was: [New]) Committed 3.x revision: 1079711 (only private heap and getter, initialize unchanged for backwards compatibility). If we want to backport also the initialize() changes to 3.x (as PQ is a @lucene.internal class), we should reopen this issue. > PriorityQueue is inheriently broken if subclass attempts to use "heap" w/generic T bound to anything other then "Object" > ------------------------------------------------------------------------------------------------------------------------ > > Key: LUCENE-2953 > URL: https://issues.apache.org/jira/browse/LUCENE-2953 > Project: Lucene - Java > Issue Type: Bug > Reporter: Hoss Man > Assignee: Uwe Schindler > Fix For: 3.2, 4.0 > > Attachments: BenchmarkArrayAccess.java, LUCENE-2953.patch, LUCENE-2953.patch > > > as discovered in SOLR-2410 the fact that the protected "heap" variable in PriorityQueue is initialized using an Object[] makes it impossible for subclasses of PriorityQueue to exist and access the "heap" array unless they bind the generic to Object. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org