holgerfriedrich opened a new pull request, #2214:
URL: https://github.com/apache/karaf/pull/2214
This is a first step to prepare the 4.5 branch for running with Java 25.
Starting Karaf in Java 25 does not yet work, as a few functions related to
the SecurityManager have been deprecated long time ago and cannot be activated
any longer via command line switches.
As a new API has been added in Java 18, I for new lift the minimum required
version to Java 21 (LTS).
Maybe this is not the way to go - as there has been some discussions if we
could introduce an abstraction layer to allow Java 17 as well.
* Lift minimum JDK version to 21
* Remove occurrences of SecurityManager, as getSecurityManager returns
null since JDK 18
* Disable JavaSecurityTest, #2082
* Enable verbose deprecation warnings
* Replace getSubject and doAs calls
** getSubject can no longer be activated via JRE command line as
SecurityManager has been removed in JDK 25.
A replacement is available since Java 21.
** doAs was deprecated and is replaced by callAll.
For Java 25, another set of modifications is still needed and will be
submitted as another PR.
Locally, I got Karaf compiling and starting with Java 25. 🥳
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]