-
Task
-
Resolution: Done
-
Major
-
7.2.0.Final
-
None
-
None
The privileged block is needed for the security manager (which is deprecated but still included in jdk 17 and 21) when running Class.getDeclaredContructor().
I.e. in the ClassloadingUtility.loadAndInstantiateClass(ClassloadingUtility.java:124) the Class.getDeclaredContructor() in invoked so an extra check is needed to make sure the methods using it implement the privileged block.
- is triggered by
-
JBTM-3946 Class.newInstance() can be replaced by Class.getDeclaredConstructor().newInstance() as class.newInstance is deprecated in java 9
- Closed