[jboss-jira] [JBoss JIRA] (ELY-161) Deprecated Reflection in security manager
Jan Kalina (JIRA)
issues at jboss.org
Thu Feb 26 18:57:49 EST 2015
Jan Kalina created ELY-161:
------------------------------
Summary: Deprecated Reflection in security manager
Key: ELY-161
URL: https://issues.jboss.org/browse/ELY-161
Project: WildFly Elytron
Issue Type: Task
Components: Security Manager
Reporter: Jan Kalina
Priority: Minor
WildFly security manager use deprecated API for getting of caller.
Currently only public API to look at the call stack as Class instances, which will not be removed in future, is {{SecurityManager.getClassContext()}}, which is inefficient to use in performance critical parts.
Efficient replacement of this API not exist yet, should be added in Java 9:
https://bugs.openjdk.java.net/browse/JDK-8043814
When mentioned enhancement proposial will be implemented, it shoudl replace current {{SecurityManager.getClassContext()}} fallback. But this new API only replace current fallback for Java 9 - deprecated API must stay for Java 8.
This issue is related to following build warning: (mentioned for search)
{code}
WildFlySecurityManager.java:[117,32] getCallerClass(int) in sun.reflect.Reflection has been deprecated
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list