Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 38011 invoked from network); 4 Feb 2010 10:26:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 10:26:52 -0000 Received: (qmail 19237 invoked by uid 500); 4 Feb 2010 10:26:51 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 19175 invoked by uid 500); 4 Feb 2010 10:26:51 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 19167 invoked by uid 99); 4 Feb 2010 10:26:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 10:26:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 10:26:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DB6D9234C1F0 for ; Thu, 4 Feb 2010 02:26:27 -0800 (PST) Message-ID: <318906405.35591265279187897.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Feb 2010 10:26:27 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2248) Tests using Version.LUCENE_CURRENT will produce problems in backwards branch, when development for 3.2 starts In-Reply-To: <1607287604.34931265276547866.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829569#action_12829569 ] Simon Willnauer commented on LUCENE-2248: ----------------------------------------- Uwe, as I already said while we where discussion this, I would add the version to LuceneTestCase (or equivalent for JU4) and then we can do the tests in sub-issues which prevents those super huge patches. thoughts?! > Tests using Version.LUCENE_CURRENT will produce problems in backwards branch, when development for 3.2 starts > ------------------------------------------------------------------------------------------------------------- > > Key: LUCENE-2248 > URL: https://issues.apache.org/jira/browse/LUCENE-2248 > Project: Lucene - Java > Issue Type: Test > Components: Analysis, contrib/*, contrib/analyzers, contrib/benchmark, contrib/highlighter, contrib/spatial, contrib/spellchecker, contrib/wikipedia, Index, Javadocs, Other, Query/Scoring, QueryParser, Search, Store, Term Vectors > Reporter: Uwe Schindler > Priority: Minor > Fix For: 3.1 > > > A lot of tests for the most-recent functionality in Lucene use Version.LUCENE_CURRENT, which is fine in trunk, as we use the most recent version without hassle and changing this in later versions. > The problem is, if we copy these tests to backwards branch after 3.1 is out and then start to improve analyzers, we then will have the maintenance hell for backwards tests. And we loose backward compatibility testing for older versions. If we would specify a specific version like LUCENE_31 in our tests, after moving to backwards they must work without any changes! > To not always modify all tests after a new version comes out (e.g. after switching to 3.2 dev), I propose to do the following: > - declare a static final Version TEST_VERSION = Version.LUCENE_CURRENT (or better) Version.LUCENE_31 in LuceneTestCase(4J). > - change all tests that use Version.LUCENE_CURRENT using eclipse refactor to use this constant and remove unneeded import statements. > When we then move the tests to backward we must only change one line, depending on how we define this constant: > - If in trunk LuceneTestCase it's Version.LUCENE_CURRENT, we just change the backwards branch to use the version numer of the released thing. > - If trunk already uses the LUCENE_31 constant (I prefer this), we do not need to change backwards, but instead when switching version numbers we just move trunk forward to the next major version (after added to Version enum). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org