-
Type:
Enhancement
-
Resolution: Not an Issue
-
Priority:
P3
-
None
-
Affects Version/s: None
-
Component/s: core-libs
Class.newInstance caches the last caller and this can help speed up subsequent calls to newInstance if the caller has not changed. However this optimization is not used for a code path involving the SecurityManager (SM), and changing that code to check the cache would help improve performance when an SM is enabled.