[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-dev
Subject: Re: Bump the Lucene main branch to Java 21
From: Michael McCandless <lucene () mikemccandless ! com>
Date: 2024-02-21 14:08:11
Message-ID: CAL8PwkZn=krG4p_fh_8NNv5arufckNxQCr73DigAzo2zqqotSw () mail ! gmail ! com
[Download RAW message or body]
On Wed, Feb 21, 2024 at 7:41 AM Chris Hegarty
<christopher.hegarty@elastic.co.invalid> wrote:
> So I think this means we are now free to use all the newfangled language
> features since Java 11 (min required for Lucene 9.x) -> Java 21?
>
> For the _main_ branch, yes.
>
> The _branch_9x_ remains unchanged - it stays on Java 11.
>
> So, if you're planning to backport a change from main to 9x, then you may
> want to consider what Java language feature and/or JDK API you use - to
> make the backport more straightforward. But this is nothing new, _main_ is
> already on Java 17, while 9x is on Java 11, so the scenario already exists,
> just that the range is changing with this proposal. Hope this helps.
>
Thanks Chris, this makes sense! So what's new with this change is on main
branch we can now use new language features from Java 17 -> Java 21. But
on backport to 9.x we must still use only Java 11.
Thanks!
Mike McCandless
http://blog.mikemccandless.com
[Attachment #3 (text/html)]
<div dir="ltr"><div dir="ltr">On Wed, Feb 21, 2024 at 7:41 AM Chris Hegarty \
<christopher.hegarty@elastic.co.invalid> wrote:</div><div \
dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> > So I think this means we are now free to use \
all the newfangled language features since Java 11 (min required for Lucene 9.x) \
-> Java 21?<br> <br>
For the _main_ branch, yes.<br>
<br>
The _branch_9x_ remains unchanged - it stays on Java 11.<br>
<br>
So, if you're planning to backport a change from main to 9x, then you may want to \
consider what Java language feature and/or JDK API you use - to make the backport \
more straightforward. But this is nothing new, _main_ is already on Java 17, while 9x \
is on Java 11, so the scenario already exists, just that the range is changing with \
this proposal. Hope this helps.<br></blockquote><div><br></div><div>Thanks Chris, \
this makes sense! So what's new with this change is on main branch we can now \
use new language features from Java 17 -> Java 21. But on backport to 9.x we \
must still use only Java \
11.</div><div><br></div><div>Thanks!</div><div><br></div><div>Mike \
McCandless<br><br><a href="http://blog.mikemccandless.com/" \
target="_blank">http://blog.mikemccandless.com</a></div></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic