lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1979) Remove remaining deprecations from indexer package
Date Wed, 14 Oct 2009 00:09:31 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Busch updated LUCENE-1979:
----------------------------------

    Attachment: lucene-1979-bw.patch

Patch for the back-compat trunk.

Hmm, everything passes, except this one:

{noformat}
[junit] java.lang.NoSuchMethodError: org.apache.lucene.index.SnapshotDeletionPolicy.snapshot()Lorg/apache/lucene/index/IndexCommitPoint;
    [junit] 	at org.apache.lucene.TestSnapshotDeletionPolicy.testReuseAcrossWriters(TestSnapshotDeletionPolicy.java:82)
    [junit] 	at org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:206)
    [junit] Test org.apache.lucene.TestSnapshotDeletionPolicy FAILED
{noformat}

Here drop-in replacement doesn't seem to work. The method snapshot() of SnapshotDeletionPolicy
was changed to return IndexCommit instead of IndexCommitPoint. IndexCommit used to implement
the deprecated IndexCommitPoint, which this patch removes.

So the tests are compiled against snapshot() returning IndexCommitPoint in the bw-branch,
and when run against the method returning IndexCommit of trunk it fails with the exception
above.

> Remove remaining deprecations from indexer package
> --------------------------------------------------
>
>                 Key: LUCENE-1979
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1979
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: Index
>            Reporter: Michael Busch
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: lucene-1979-bw.patch, lucene-1979.patch
>
>


-- 
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


Mime
View raw message