You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Arvind Aprameya <ar...@oracle.com> on 2022/03/28 17:56:18 UTC

nb-javac status update.

Hi All,

Since the contribution of the NetBeans IDE to Apache, Oracle had been the primary maintainer of the nb-javac patched code and distributed the nb-javac plugin and source to be used in the NetBeans IDE.  We appreciate the NetBeans Apache community members who contributed to the nb-javac plugin over the years.  The most recent plugin code was published in Oct 2021 [1].  While we ensured the plugin availability for every new JDK release, we also worked towards enabling NetBeans to directly use the JDK javac compiler.  We are happy to announce that the migration effort to the JDK javac has been completed!  NetBeans version 13 release can use the javac implementation in OpenJDK 17 for editing code on any language level supported by the OpenJDK 17 javac compiler.  As this migration is completed, we will stop distributing the code and the nb-javac plugin going forward.  Once again, we would like to thank the NetBeans Apache community for their collaboration.

[1] https://github.com/oracle/nb-javac

regards,
Arvind

Re: nb-javac status update.

Posted by Michael Bien <mb...@gmail.com>.
On 15.04.22 06:56, Jaroslav Tulach wrote:
>> NetBeans 13 already doesn't require nb-javac if you run on JDK 17, its
>> only remaining purpose is to allow users to run NetBeans on older JDKs.
>>
> Given the javac API (including trees API & other internals as used by
> NetBeans) isn't developed in a compatible way, it is not guaranteed at all
> NetBeans 13 can use javac from newer JDK than 17. I suggest to rephrase as:
>
> NetBeans 13 already doesn't require nb-javac if you run on JDK 17, its
> purpose is to allow users to run NetBeans on other JDKs than 17.
> -jt
>
my original mail was a bit longer, I removed a few things to keep it 
simple. I think its clear that running NetBeans with libraries which 
weren't there on release has to be done on your own risk. Generally: you 
should not do that. Instead consider using a dev build of the next NB 
release. But if all you want to do is to experiment with an upstream JDK 
release for a few hours, running NB with the upstream javac temporarily 
works often good enough in my experience.

Jan added recently some improvements which might not even require to 
change anything at all (in some situations)*.

The point i wanted to make as reply to the original question was that 
there is nothing special about nb-javac (anymore, it used to be the 
case). Its a recent javac snapshot automatically backported to a lower 
language level. If the reader understands that, everything else can be 
hopefully inferred.

we probably should put that into an easily linkable FAQ somewhere

*https://github.com/apache/netbeans/pull/3598

-mbien


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

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




Re: nb-javac status update.

Posted by Jaroslav Tulach <ja...@gmail.com>.
> NetBeans 13 already doesn't require nb-javac if you run on JDK 17, its

> only remaining purpose is to allow users to run NetBeans on older JDKs.
>

Given the javac API (including trees API & other internals as used by
NetBeans) isn't developed in a compatible way, it is not guaranteed at all
NetBeans 13 can use javac from newer JDK than 17. I suggest to rephrase as:

NetBeans 13 already doesn't require nb-javac if you run on JDK 17, its
purpose is to allow users to run NetBeans on other JDKs than 17.
-jt

Re: nb-javac status update.

Posted by Michael Bien <mb...@gmail.com>.
On 11.04.22 11:50, Neil C Smith wrote:
> On Sun, 10 Apr 2022 at 18:34, Michael Bien <mb...@gmail.com> wrote:
>> if the community would decide to require NB N to run on JDK N+4 on
>> release, there would be indeed no need for nb-javac. But that would be
>> too easy :)
> Given we release at twice the rate of the JDK, that would become fun
> very quickly! ;-)

my mistake, you are right (as always)! NetBeans releases are synced with 
JDK update releases.

NetBeans 14 would be able to use javac of 18.0.1,

15 -> 18.0.2,

16 -> 19.0.1 etc

NetBeans 21 and 22 would temporarily align with the JDK version if my 
napkin calculations are correct :)

-mbien

>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>


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

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




Re: nb-javac status update.

Posted by Neil C Smith <ne...@apache.org>.
On Sun, 10 Apr 2022 at 18:34, Michael Bien <mb...@gmail.com> wrote:
> if the community would decide to require NB N to run on JDK N+4 on
> release, there would be indeed no need for nb-javac. But that would be
> too easy :)

Given we release at twice the rate of the JDK, that would become fun
very quickly! ;-)

Neil

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

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




Re: nb-javac status update.

Posted by Michael Bien <mb...@gmail.com>.
I feel this question comes up at least once per month

NetBeans 13 already doesn't require nb-javac if you run on JDK 17, its 
only remaining purpose is to allow users to run NetBeans on older JDKs. 
The javac included as plugin in NB 13 is a pure language-level backport 
of the javac included in JDK 17.

NetBeans 14 will require javac 18 (not 17!) in the classpath, it doesn't 
care where it comes from.

if the community would decide to require NB N to run on JDK N+4 on 
release, there would be indeed no need for nb-javac. But that would be 
too easy :)

-mbien

On 10.04.22 17:42, Eric Bresie wrote:
> Late to the discussion...
>
> So the nb-javac included in more recent NB builds would no longer be
> required when using JDK 17 and beyond then but nb-javac would still be
> needed in running prior to JDK 17?
>
> Eric Bresie
> ebresie@gmail.com
>
>
> On Tue, Mar 29, 2022 at 12:12 AM Jaroslav Tulach <ja...@gmail.com>
> wrote:
>
>>> Dear Arvind,
>>>
>>> Thank you for your and Oracle work to integrate nb-javac features into
>>> javac!
>> Yes, it is great to see all the features essential for editing Java in an
>> IDE
>> are already part of OpenJDK 17 javac compiler!
>>
>>> the migration effort to the JDK javac has been completed!
>> If anyone observes a bug while editing Java in the Apache NetBeans IDE, go
>> to
>> https://github.com/openjdk/jdk and fix it  there - that's where the javac
>> (formerly nb-javac) code lives!
>>
>>> Also you or @Jaroslav can mention, that nb-javac is still alive as a
>>> generated library from the Java 17+ Javac which is compatible with Java
>>> 8 runtime.
>> The build scripts are available at
>> https://github.com/JaroslavTulach/nb-javac/
>> - however the Java code comes from https://github.com/openjdk/jdk - the
>> build
>> script checks the official OpenJDK repository out and just packages the
>> sources
>> into binaries suitable for NetBeans purposes.
>>
>> -jt
>>
>>> On 3/28/22 10:56, Arvind Aprameya wrote:
>>>> Hi All,
>>>>
>>>> Since the contribution of the NetBeans IDE to Apache, Oracle had been
>> the
>>>> primary maintainer of the nb-javac patched code and distributed the
>>>> nb-javac plugin and source to be used in the NetBeans IDE.  We
>> appreciate
>>>> the NetBeans Apache community members who contributed to the nb-javac
>>>> plugin over the years.  The most recent plugin code was published in
>> Oct
>>>> 2021 [1].  While we ensured the plugin availability for every new JDK
>>>> release, we also worked towards enabling NetBeans to directly use the
>> JDK
>>>> javac compiler.  We are happy to announce that the migration effort to
>>>> the JDK javac has been completed!  NetBeans version 13 release can use
>>>> the javac implementation in OpenJDK 17 for editing code on any language
>>>> level supported by the OpenJDK 17 javac compiler.  As this migration is
>>>> completed, we will stop distributing the code and the nb-javac plugin
>>>> going forward.  Once again, we would like to thank the NetBeans Apache
>>>> community for their collaboration.
>>>>
>>>> [1] https://github.com/oracle/nb-javac
>>>>
>>>> regards,
>>>> Arvind
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>


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

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




Re: nb-javac status update.

Posted by Eric Bresie <eb...@gmail.com>.
Late to the discussion...

So the nb-javac included in more recent NB builds would no longer be
required when using JDK 17 and beyond then but nb-javac would still be
needed in running prior to JDK 17?

Eric Bresie
ebresie@gmail.com


On Tue, Mar 29, 2022 at 12:12 AM Jaroslav Tulach <ja...@gmail.com>
wrote:

> > Dear Arvind,
> >
> > Thank you for your and Oracle work to integrate nb-javac features into
> > javac!
>
> Yes, it is great to see all the features essential for editing Java in an
> IDE
> are already part of OpenJDK 17 javac compiler!
>
> > the migration effort to the JDK javac has been completed!
>
> If anyone observes a bug while editing Java in the Apache NetBeans IDE, go
> to
> https://github.com/openjdk/jdk and fix it  there - that's where the javac
> (formerly nb-javac) code lives!
>
> > Also you or @Jaroslav can mention, that nb-javac is still alive as a
> > generated library from the Java 17+ Javac which is compatible with Java
> > 8 runtime.
>
> The build scripts are available at
> https://github.com/JaroslavTulach/nb-javac/
> - however the Java code comes from https://github.com/openjdk/jdk - the
> build
> script checks the official OpenJDK repository out and just packages the
> sources
> into binaries suitable for NetBeans purposes.
>
> -jt
>
> > On 3/28/22 10:56, Arvind Aprameya wrote:
> > > Hi All,
> > >
> > > Since the contribution of the NetBeans IDE to Apache, Oracle had been
> the
> > > primary maintainer of the nb-javac patched code and distributed the
> > > nb-javac plugin and source to be used in the NetBeans IDE.  We
> appreciate
> > > the NetBeans Apache community members who contributed to the nb-javac
> > > plugin over the years.  The most recent plugin code was published in
> Oct
> > > 2021 [1].  While we ensured the plugin availability for every new JDK
> > > release, we also worked towards enabling NetBeans to directly use the
> JDK
> > > javac compiler.  We are happy to announce that the migration effort to
> > > the JDK javac has been completed!  NetBeans version 13 release can use
> > > the javac implementation in OpenJDK 17 for editing code on any language
> > > level supported by the OpenJDK 17 javac compiler.  As this migration is
> > > completed, we will stop distributing the code and the nb-javac plugin
> > > going forward.  Once again, we would like to thank the NetBeans Apache
> > > community for their collaboration.
> > >
> > > [1] https://github.com/oracle/nb-javac
> > >
> > > regards,
> > > Arvind
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: nb-javac status update.

Posted by Jaroslav Tulach <ja...@gmail.com>.
> Dear Arvind,
> 
> Thank you for your and Oracle work to integrate nb-javac features into
> javac!

Yes, it is great to see all the features essential for editing Java in an IDE 
are already part of OpenJDK 17 javac compiler!

> the migration effort to the JDK javac has been completed!

If anyone observes a bug while editing Java in the Apache NetBeans IDE, go to 
https://github.com/openjdk/jdk and fix it  there - that's where the javac 
(formerly nb-javac) code lives!

> Also you or @Jaroslav can mention, that nb-javac is still alive as a
> generated library from the Java 17+ Javac which is compatible with Java
> 8 runtime.

The build scripts are available at https://github.com/JaroslavTulach/nb-javac/ 
- however the Java code comes from https://github.com/openjdk/jdk - the build 
script checks the official OpenJDK repository out and just packages the sources 
into binaries suitable for NetBeans purposes.

-jt

> On 3/28/22 10:56, Arvind Aprameya wrote:
> > Hi All,
> > 
> > Since the contribution of the NetBeans IDE to Apache, Oracle had been the
> > primary maintainer of the nb-javac patched code and distributed the
> > nb-javac plugin and source to be used in the NetBeans IDE.  We appreciate
> > the NetBeans Apache community members who contributed to the nb-javac
> > plugin over the years.  The most recent plugin code was published in Oct
> > 2021 [1].  While we ensured the plugin availability for every new JDK
> > release, we also worked towards enabling NetBeans to directly use the JDK
> > javac compiler.  We are happy to announce that the migration effort to
> > the JDK javac has been completed!  NetBeans version 13 release can use
> > the javac implementation in OpenJDK 17 for editing code on any language
> > level supported by the OpenJDK 17 javac compiler.  As this migration is
> > completed, we will stop distributing the code and the nb-javac plugin
> > going forward.  Once again, we would like to thank the NetBeans Apache
> > community for their collaboration.
> > 
> > [1] https://github.com/oracle/nb-javac
> > 
> > regards,
> > Arvind





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

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




Re: nb-javac status update.

Posted by Laszlo Kishalmi <la...@gmail.com>.
Dear Arvind,

Thank you for your and Oracle work to integrate nb-javac features into 
javac!

Also you or @Jaroslav can mention, that nb-javac is still alive as a 
generated library from the Java 17+ Javac which is compatible with Java 
8 runtime.

On 3/28/22 10:56, Arvind Aprameya wrote:
> Hi All,
>
> Since the contribution of the NetBeans IDE to Apache, Oracle had been the primary maintainer of the nb-javac patched code and distributed the nb-javac plugin and source to be used in the NetBeans IDE.  We appreciate the NetBeans Apache community members who contributed to the nb-javac plugin over the years.  The most recent plugin code was published in Oct 2021 [1].  While we ensured the plugin availability for every new JDK release, we also worked towards enabling NetBeans to directly use the JDK javac compiler.  We are happy to announce that the migration effort to the JDK javac has been completed!  NetBeans version 13 release can use the javac implementation in OpenJDK 17 for editing code on any language level supported by the OpenJDK 17 javac compiler.  As this migration is completed, we will stop distributing the code and the nb-javac plugin going forward.  Once again, we would like to thank the NetBeans Apache community for their collaboration.
>
> [1] https://github.com/oracle/nb-javac
>
> regards,
> Arvind
>

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

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