You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2018/10/22 15:03:12 UTC

precommit, java8 and Solr 5.x

Is there a magic flag to convince the precommit step to allow Java 8
constructs (lambdas in this case) when compiling a 5x version? I need
to backport some code.

I tried this:
ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=1.8 precommit
and
ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=8 precommit

to no avail. It all compiles fine, but generates this error:

-ecj-javadoc-lint-src:
.
.
.
[ecj-lint] Lambda expressions are allowed only at source level 1.8 or above

Meanwhile I'll dig of course.

Thanks,
Erick

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


Re: precommit, java8 and Solr 5.x

Posted by Erick Erickson <er...@gmail.com>.
Thanks. I think that's also the javac.source, but specifying it fully
doesn't change the behavior. I did manage to get it to work just now
so I'm good.

Best,
Erick
On Mon, Oct 22, 2018 at 11:14 AM Alexandre Rafalovitch
<ar...@gmail.com> wrote:
>
> Have you tried -Dant.build.javac.source=1.8? Based on
> http://ant.apache.org/manual/running.html#sysprops (though maybe those
> are environmental properties).
>
> Regards,
>    Alex.
> On Mon, 22 Oct 2018 at 11:03, Erick Erickson <er...@gmail.com> wrote:
> >
> > Is there a magic flag to convince the precommit step to allow Java 8
> > constructs (lambdas in this case) when compiling a 5x version? I need
> > to backport some code.
> >
> > I tried this:
> > ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=1.8 precommit
> > and
> > ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=8 precommit
> >
> > to no avail. It all compiles fine, but generates this error:
> >
> > -ecj-javadoc-lint-src:
> > .
> > .
> > .
> > [ecj-lint] Lambda expressions are allowed only at source level 1.8 or above
> >
> > Meanwhile I'll dig of course.
> >
> > Thanks,
> > Erick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

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


Re: precommit, java8 and Solr 5.x

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Have you tried -Dant.build.javac.source=1.8? Based on
http://ant.apache.org/manual/running.html#sysprops (though maybe those
are environmental properties).

Regards,
   Alex.
On Mon, 22 Oct 2018 at 11:03, Erick Erickson <er...@gmail.com> wrote:
>
> Is there a magic flag to convince the precommit step to allow Java 8
> constructs (lambdas in this case) when compiling a 5x version? I need
> to backport some code.
>
> I tried this:
> ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=1.8 precommit
> and
> ant -Djavac.source=1.8 -Djavac.target=1.8 -Dsource=8 precommit
>
> to no avail. It all compiles fine, but generates this error:
>
> -ecj-javadoc-lint-src:
> .
> .
> .
> [ecj-lint] Lambda expressions are allowed only at source level 1.8 or above
>
> Meanwhile I'll dig of course.
>
> Thanks,
> Erick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

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