Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CB44743A for ; Wed, 7 Dec 2011 14:47:02 +0000 (UTC) Received: (qmail 87209 invoked by uid 500); 7 Dec 2011 14:47:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 87044 invoked by uid 500); 7 Dec 2011 14:47:01 -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 87037 invoked by uid 99); 7 Dec 2011 14:47:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 14:47:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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, 07 Dec 2011 14:47:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F11FC105650 for ; Wed, 7 Dec 2011 14:46:39 +0000 (UTC) Date: Wed, 7 Dec 2011 14:46:39 +0000 (UTC) From: "Shai Erera (Updated) (JIRA)" To: dev@lucene.apache.org Message-ID: <1481279971.49487.1323269199989.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <126559339.45963.1323187300077.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-3620) FilterIndexReader does not override all of IndexReader methods 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-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera updated LUCENE-3620: ------------------------------- Attachment: LUCENE-3620-trunk.patch Patch adds the test to TestFilterIndexReader. Uwe asked that I do not commit these changes (test + FIR/IR fixes) until he merges in the branch on IR-read-only. We decided that Uwe will apply that patch to the branch, fix FIR/IR there and merge the branch afterwards. > FilterIndexReader does not override all of IndexReader methods > -------------------------------------------------------------- > > Key: LUCENE-3620 > URL: https://issues.apache.org/jira/browse/LUCENE-3620 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Reporter: Shai Erera > Assignee: Shai Erera > Priority: Minor > Fix For: 3.6, 4.0 > > Attachments: LUCENE-3620-trunk.patch, LUCENE-3620.patch, LUCENE-3620.patch, LUCENE-3620.patch > > > FilterIndexReader does not override all of IndexReader methods. We've hit an error in LUCENE-3573 (and fixed it). So I thought to write a simple test which asserts that FIR overrides all methods of IR (and we can filter our methods that we don't think that it should override). The test is very simple (attached), and it currently fails over these methods: > {code} > getRefCount > incRef > tryIncRef > decRef > reopen > reopen > reopen > reopen > clone > numDeletedDocs > document > setNorm > setNorm > termPositions > deleteDocument > deleteDocuments > undeleteAll > getIndexCommit > getUniqueTermCount > getTermInfosIndexDivisor > {code} > I didn't yet fix anything in FIR -- if you spot a method that you think we should not override and delegate, please comment. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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