Dne úterý 25. října 2022 11:02:07 CET, Neil C Smith napsal(a):
> On Tue, 25 Oct 2022 at 08:06, Jaroslav Tulach <jaroslav.tul...@gmail.com> 
wrote:
> >  JDK `javac` drops support for old `-target` versions. E.g. version 11 can
> >  no> 
> > longer target 1.5 bytecode:
> 
> Doesn't that take nb-javac beyond ever being just an automated
> backport of the current javac to run on older JDK?

nb-javac is an automated backport of the latest JDK's javac to run on JDK8+. 
No change here.

> I'm confused!  Wasn't the original proposal (and our existing usage of
> it) about using nb-javac to support later source and target while
> running on an older JDK.  This also adds supporting older source and
> target while running on a newer JDK?

By fixing the compiler in the build script (by downloading it from Maven 
central) you will be able to build such version of NetBeans on JDK33+ even if 
it drops support for any `-target` NetBeans currently needs.

If we stick using `javac` from the JDK the NetBeans build runs on, then at one 
moment you will need to download an ancient JDK to built old version of 
NetBeans as JDK33+ would be "too modern".

Let's use the JDK as a runtime only. Let's stop relying on its compiler. The 
build will be more reproducible.
-jt




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to