The caller class is used in the warning message but it may throw NPE when invoked via JNI code with no caller frame and when -Djava.security.manager=allow is set when it accesses its code source and its name.
- relates to
-
JDK-8268349 Provide clear run-time warnings about Security Manager deprecation
- Resolved