You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/12/08 10:49:00 UTC

[jira] [Comment Edited] (OFBIZ-12722) Fix Java 17 two warning issues

    [ https://issues.apache.org/jira/browse/OFBIZ-12722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644733#comment-17644733 ] 

Jacques Le Roux edited comment on OFBIZ-12722 at 12/8/22 10:48 AM:
-------------------------------------------------------------------

For 
{code}
AuthHelper.java:132: warning: [removal] AccessController in java.security has been deprecated and marked for removal
return AccessController.doPrivileged(
^
{code}
Since Java 17 will be supported for 3 years we could (temporary?)  add 
{code}@SuppressWarnings({ "removal", "deprecation" }){code} to {{AuthHelper::getContextClassLoader}}. We could handle that later when the removal will be inevitable.



was (Author: jacques.le.roux):
For 
{code}
AuthHelper.java:132: warning: [removal] AccessController in java.security has been deprecated and marked for removal
return AccessController.doPrivileged(
^
{code}
Since Java 17 will be supported for 3 years we could (temporary?)  add {{@SuppressWarnings({ "removal", "deprecation" })}} to {{AuthHelper::getContextClassLoader}}. We could handle that later when the removal will be inevitable.


> Fix Java 17 two warning issues
> ------------------------------
>
>                 Key: OFBIZ-12722
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12722
>             Project: OFBiz
>          Issue Type: 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)