[
https://issues.apache.org/jira/browse/OFBIZ-12722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736081#comment-17736081
]
Danny Trunk edited comment on OFBIZ-12722 at 6/22/23 11:33 AM:
---------------------------------------------------------------
The now deprecated AccessController got introduced with
[https://github.com/apache/ofbiz-framework/commit/2220cb2419b24b495c62cd4ec405303903492249]
Is it possible to just revert it or would that have a negative performance
impact?
Since based on the documentation it doesn't look like there will be any other
option than getting rid of that AccessController call:
> Deprecated, for removal: This API element is subject to removal in a future
> version.
This class is only useful in conjunction with [the Security
Manager|https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/SecurityManager.html],
which is deprecated and subject to removal in a future release. Consequently,
this class is also deprecated and subject to removal. There is no replacement
for the Security Manager or this class.
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/security/AccessController.html
was (Author: dtrunk90):
The now deprecated AccessController got introduced with
[https://github.com/apache/ofbiz-framework/commit/2220cb2419b24b495c62cd4ec405303903492249]
Is it possible to just revert it or would that have a negative performance
impact?
> Fix Java 17 two warning issues
> ------------------------------
>
> Key: OFBIZ-12722
> URL: https://issues.apache.org/jira/browse/OFBIZ-12722
> Project: OFBiz
> Issue Type: Sub-task
> Components: base, testtools
> Affects Versions: Upcoming Branch
> Reporter: Jacques Le Roux
> Priority: Minor
>
> AuthHelper.java:132: warning: [removal] AccessController in java.security has
> been deprecated and marked for removal
> return AccessController.doPrivileged(
> ^
> GroovyScriptTestCase.java:29: warning: [deprecation] GroovyTestCase in
> groovy.util has been deprecated
> public class GroovyScriptTestCase extends GroovyTestCase {
--
This message was sent by Atlassian Jira
(v8.20.10#820010)