News for hackers. Stuff that matters.
Re:Java 24 by kasperni on Tuesday March 18, 2025 @11:35AM (#43400691)
https://openjdk.org/jeps/486 goes into detail about the motivation for removing support for Security Manager.
Re:Java 24 by bullen on Tuesday March 18, 2025 @11:47AM (#43400845)
I have read it but it does not make sense.

This work is destructive for no reason.

But I am curious how classloaders will work now!?

Re:Java 24 by geodel on Tuesday March 18, 2025 @03:29PM (#43403875)
Huh, it is not no reason. You just do not like their reasons.
Re:Java 24 by bullen on Tuesday March 18, 2025 @07:44PM (#43406627)
I disagree with them, all.

I also dislike the Win32 removal since JDK 22, but I understand that Windows 32-bit assembly is un-maintainable. There is a reason ARM keeps 32-bit.

The Security Manager was not so hard to maintain it merited a removal without replacement.

Re:Java 24 by waste_monk on Tuesday March 18, 2025 @09:47PM (#43407503)
>The Security Manager was not so hard to maintain it merited a removal without replacement.

It sounds like the OpenJDK folk disagree with you, though. From the JEP:

>The Security Manager has not been the primary means of securing client-side Java code for many years, it has rarely been used to secure server-side code, and it is costly to maintain

>...Improve the maintainability of hundreds of JDK classes that currently delegate resource-access decisions to the Security Manager.

>The OpenJDK Core Libraries Group devotes significant time and energy to reviewing every change to any of these methods. Every new API must be designed, and its implementation carefully audited, with the least-privilege model in mind. However, only a tiny number of applications actually enable the Security Manager.

This seems like a big win in terms of maintainability of the core libraries.