JDK 25 support

"Krishnaraj Viswanathan via user" <[email protected]> Mon, 18 May 2026 04:32:43 +0000
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CH3PR10MB688240922C4FF12495D04F4AF6032@CH3PR10MB6882.namprd10.prod.outlook.com>
--_000_CH3PR10MB688240922C4FF12495D04F4AF6032CH3PR10MB6882namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Confidential - Oracle Restricted \Including External Recipients

I was checking if Struts would run with jdk25 and I see a possible issue wi=
th the usage of SecurityManager.

getSecurityManager has been deprecated since Java24 and would return a null=
 and setSecurityManager is removed. I see both these used in the Struts cod=
e. The getSecurityManager seems to be used with jasper and some security ch=
eck and I assume there would not be an issue if I am not using jasper.

The setSecurityManager seems to be used for some test classes(com.opensymph=
ony.xwork2.inject.ContainerImplTest) and probably not used in run time.

On the surface, I don't think there could be a runtime issue. Could anyone =
tell if I am right in my assumptions? Of course, a more detailed check woul=
d be required, but from an initial analysis perspective, am I in the right =
path?

Thanks
~Krishnaraj V


Confidential - Oracle Restricted \Including External Recipients

--_000_CH3PR10MB688240922C4FF12495D04F4AF6032CH3PR10MB6882namp_--