Hello devs, I think we should be able to stick to our plan[1][2] and bump the build and test baseline to JDK 21 for NB 30.
https://github.com/apache/netbeans/pull/9151 bumps the lower bound for CI while also updating some tests where needed and everything passes. The PR above is quite small actually, because a lot of the changes made it already into NB 29, for example the gradle tooling update #9112, tech dept reductions like #9051 and many test data and dependency updates removed modules from the problem list. What we can't do however is to change to javac.release=21 in a module yet, because this is currently blocked by the (remaining) modules listed in https://github.com/apache/netbeans/issues/7871. If we wanted to use javac.release=21 we would have to disable the GraalVM job for example, since it is stuck on JDK 17 (22.3.1). Also listed on #7871 and mentioned in previous mails[3]. JDK 21 would also unlock the RecordingStream#stop method[4] in tests which is very useful for replacing functionality which relied on the SecurityManager. (#9151 is calling it via reflection atm) best regards, michael ps: this is also an attempt to bring some of the slack discussion back to the mailing list which ASF encourages. [1] https://cwiki.apache.org/confluence/display/NETBEANS/Minimum+JDK+build+and+run+policy [2] https://lists.apache.org/thread/omt7lfqjvjbfc83w8q8886gnjg8d6syf [3] https://lists.apache.org/thread/t7vo4oy47p4kzl4gccn17rsd8b39dnlf [4] https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/consumer/RecordingStream.html#stop() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
