You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2005/04/22 05:29:42 UTC

broken compilation

I don't normally run this target, but one of our deprecated tests has a  
compilation issue.  I haven't researched when this broke, but could  
someone fix this please?  Here are the details:

$ ant compile-test-deprecated -Djavac.deprecation=off
Buildfile: build.xml

javacc-uptodate-check:

javacc-notice:

init:

compile-core:

compile-demo:

compile-test-deprecated:
     [javac] Compiling 41 source files to  
/Users/erik/dev/lucene/build/classes/test-deprecated
     [javac]  
/Users/erik/dev/lucene/src/test-deprecated/org/apache/lucene/index/ 
TermInfosTest.java:89: cannot resolve symbol
     [javac] symbol  : constructor TermInfosWriter  
(org.apache.lucene.store.Directory,java.lang.String,org.apache.lucene.in 
dex.FieldInfos)
     [javac] location: class org.apache.lucene.index.TermInfosWriter
     [javac]     TermInfosWriter writer = new TermInfosWriter(store,  
"words", fis);
     [javac]                              ^
     [javac] Note: Some input files use or override a deprecated API.
     [javac] Note: Recompile with -deprecation for details.
     [javac] 1 error

BUILD FAILED

  


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: broken compilation

Posted by Doug Cutting <cu...@apache.org>.
Erik Hatcher wrote:
>> I fixed it. TermInfosTest is, however, not a real JUnit test case, so I
>> wonder how useful it is at all...
> 
> 
> I'm curious - did your fix change the code to go against a new API?

Yes, but not a public API.

> In 
> other words, is there something that has changed that breaks API 
> compatibility?

No.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: broken compilation

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Apr 26, 2005, at 2:02 PM, Daniel Naber wrote:
> On Friday 22 April 2005 05:29, Erik Hatcher wrote:
>
>> I don't normally run this target, but one of our deprecated tests has 
>> a
>>   compilation issue.  I haven't researched when this broke, but could
>> someone fix this please?
>
> I fixed it. TermInfosTest is, however, not a real JUnit test case, so I
> wonder how useful it is at all...

I'm curious - did your fix change the code to go against a new API?  In 
other words, is there something that has changed that breaks API 
compatibility?

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: broken compilation

Posted by Daniel Naber <lu...@danielnaber.de>.
On Friday 22 April 2005 05:29, Erik Hatcher wrote:

> I don't normally run this target, but one of our deprecated tests has a
>   compilation issue.  I haven't researched when this broke, but could
> someone fix this please?

I fixed it. TermInfosTest is, however, not a real JUnit test case, so I 
wonder how useful it is at all...

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org