lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: Tests fail to compile on JDK 1.4?
Date Tue, 02 Jun 2009 06:37:58 GMT
My fault. I didn't notice Class.getSimpleName() exists since Java 1.5.
I wonder if it's possible to set the compiler level to 1.4 in the build.xml.
This is needed for core, but for contrib it should be 1.5. I'll check if
that's possible and post a patch if it is.

On Tue, Jun 2, 2009 at 3:53 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> Yes I'm seeing this too.  I thought I had fixed it, with LUCENE-1655,
> but somehow I didn't...
>
> I'll fix.
>
> Mike
>
> On Mon, Jun 1, 2009 at 8:01 PM, Grant Ingersoll <gsingers@apache.org>
> wrote:
> > Anyone else seeing:
> > common.compile-test:
> >  [mkdir] Created dir: .../build/classes/test
> >  [javac] Compiling 190 source files to .../build/classes/test
> >  [javac]
> > .../src/test/org/apache/lucene/search/TestTopScoreDocCollector.java:70:
> > cannot resolve symbol
> >  [javac] symbol  : method getSimpleName ()
> >  [javac] location: class java.lang.Class
> >  [javac]         assertEquals(actualTSDCClass[i],
> > tdc.getClass().getSimpleName());
> >  [javac]                                                      ^
> >  [javac] Note: Some input files use or override a deprecated API.
> >  [javac] Note: Recompile with -deprecation for details.
> >  [javac] 1 error
> >
> > Looks like we've got some 1.5 stuff in core test.
> >
> > -Grant
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> 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