Re: use of Deprecated annotation error

2023-02-04 Thread Michael Bien
no problem. That is also the main reason I really would like to see NB finally move to JDK 11 or later, so that it can use more modern APIs. -mbien On 05.02.23 01:39, Brad Walker wrote: Thanks! Completely understand. -brad w. On Sat, Feb 4, 2023 at 6:37 PM Michael Bien wrote: Hi

Re: use of Deprecated annotation error

2023-02-04 Thread Brad Walker
Thanks! Completely understand. -brad w. On Sat, Feb 4, 2023 at 6:37 PM Michael Bien wrote: > Hi Brad, > > the @Deprecated annotation itself is old, however the attributes > since/forRemoval are newer (probably JDK11 if I remember correctly). > > This means that this will only work in modules

Re: use of Deprecated annotation error

2023-02-04 Thread Michael Bien
Hi Brad, the @Deprecated annotation itself is old, however the attributes since/forRemoval are newer (probably JDK11 if I remember correctly). This means that this will only work in modules which have their bytecode level set to 11 (there aren't many). Javac of JDK 17 on your system is

use of Deprecated annotation error

2023-02-04 Thread Brad Walker
I'm pulling my hair out trying to figure something out when I use the @Deprecaed annotation. For example, if I do the following in JarClassLoader.java, line 866 /** Delete any temporary JARs we were holding on to. * Also close any other JARs in our list. */ *

Re: building netbeans w/ different compiler

2023-02-04 Thread Ernie Rael
About using build.properties and nbjdk.home There's a thread from last year, https://lists.apache.org/thread/4qvk880rkn4norzk7t9tt92ppmnf48kp, where it was not sufficient to set nbjdk.home, JAVA_HOME also had to be set. I was using nbbuild/user.build.properties, not ~/.nbbuild.properties;

Re: building netbeans w/ different compiler

2023-02-04 Thread Brad Walker
Hey Matthias, You really got me thinking with this comment.. 8-) On Sat, Feb 4, 2023 at 4:43 PM Matthias Bläsing wrote: > > 1 - Does compiling Netbeans out of the box continue to Java 8 as the > > compiler? > > You'll need JDK 11. Most modules still build for 8, but they use the > javac

Re: building netbeans w/ different compiler

2023-02-04 Thread Michael Bien
Hi Brad, as Matthias said NetBeans requires at least JDK 11 for the build. In java you generally avoid swapping out the compiler since you can simply swap out the whole JDK - but I suppose that is what you meant by compiler. The easiest way to achieve this is to make sure that only one JDK

Re: building netbeans w/ different compiler

2023-02-04 Thread Matthias Bläsing
Hi Brad, Am Samstag, dem 04.02.2023 um 16:27 -0600 schrieb Brad Walker: > I can't figure out what options to use so that doing a build with Ant > compiles with a different compiler. I've looked all over the web page and > can't seem to find it there. > > So 2 questions: > > 1 - Does compiling

building netbeans w/ different compiler

2023-02-04 Thread Brad Walker
I can't figure out what options to use so that doing a build with Ant compiles with a different compiler. I've looked all over the web page and can't seem to find it there. So 2 questions: 1 - Does compiling Netbeans out of the box continue to Java 8 as the compiler? 2 - What option would I pass