[jboss-jira] [JBoss JIRA] (ELY-161) Deprecated Reflection in security manager
Justin Cook (JIRA)
issues at jboss.org
Wed Aug 29 10:08:00 EDT 2018
[ https://issues.jboss.org/browse/ELY-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Cook closed ELY-161.
---------------------------
Resolution: Duplicate Issue
This issue is duplicated by https://issues.jboss.org/browse/ELY-1642
> 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
> *This task can be resolved only after resolving 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
(v7.5.0#75005)
More information about the jboss-jira
mailing list