lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1961) Remove remaining deprecations in document package
Date Thu, 08 Oct 2009 18:23:31 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763607#action_12763607
] 

Michael McCandless commented on LUCENE-1961:
--------------------------------------------

I'm seeing this when I run "ant test-tag":

{code}
test-tag:
    [mkdir] Created dir: /lucene/clean/build/lucene_2_9_back_compat_tests_20091008
    [mkdir] Created dir: /lucene/clean/build/lucene_2_9_back_compat_tests_20091008/classes/java
    [javac] Compiling 413 source files to /lucene/clean/build/lucene_2_9_back_compat_tests_20091008/classes/java
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
      [jar] Building jar: /lucene/clean/build/lucene_2_9_back_compat_tests_20091008/lucene_2_9_back_compat_tests_20091008.jar
    [mkdir] Created dir: /lucene/clean/build/lucene_2_9_back_compat_tests_20091008/classes/test
    [javac] Compiling 204 source files to /lucene/clean/build/lucene_2_9_back_compat_tests_20091008/classes/test
    [javac] /lucene/clean/tags/lucene_2_9_back_compat_tests_20091008/src/test/org/apache/lucene/index/DocHelper.java:172:
cannot find symbol
    [javac] symbol  : method getOmitTermFreqAndPositions()
    [javac] location: interface org.apache.lucene.document.Fieldable
    [javac]       if (f.getOmitTermFreqAndPositions()) add(noTf,f);
    [javac]            ^
    [javac] /lucene/clean/tags/lucene_2_9_back_compat_tests_20091008/src/test/org/apache/lucene/index/TestFieldsReader.java:75:
cannot find symbol
    [javac] symbol  : method getOmitTermFreqAndPositions()
    [javac] location: interface org.apache.lucene.document.Fieldable
    [javac]     assertTrue(field.getOmitTermFreqAndPositions() == false);
    [javac]                     ^
    [javac] /lucene/clean/tags/lucene_2_9_back_compat_tests_20091008/src/test/org/apache/lucene/index/TestFieldsReader.java:83:
cannot find symbol
    [javac] symbol  : method getOmitTermFreqAndPositions()
    [javac] location: interface org.apache.lucene.document.Fieldable
    [javac]     assertTrue(field.getOmitTermFreqAndPositions() == false);
    [javac]                     ^
    [javac] /lucene/clean/tags/lucene_2_9_back_compat_tests_20091008/src/test/org/apache/lucene/index/TestFieldsReader.java:91:
cannot find symbol
    [javac] symbol  : method getOmitTermFreqAndPositions()
    [javac] location: interface org.apache.lucene.document.Fieldable
    [javac]     assertTrue(field.getOmitTermFreqAndPositions() == true);
    [javac]                     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 errors
{code}

I think you have to add Fieldable.getOmitTFAP on the back compat branch's src/java?

> Remove remaining deprecations in document package
> -------------------------------------------------
>
>                 Key: LUCENE-1961
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1961
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: Other
>            Reporter: Michael Busch
>            Assignee: Michael Busch
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: lucene-1961.patch
>
>
> Remove different deprecated APIs:
> - Field.Index.NO_NORMS, etc.
> - Field.binaryValue()
> - getOmitTf()/setOmitTf()

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