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

Jacques Le Roux commented on OFBIZ-12722:
-----------------------------------------

{quote}Resolving the deprecation of GroovyTestCase might be a bit complicated. 
Groovy test suites test specifications are read in 
ModelTestSuite#parseTestElements:
{code:java}
{color:#c8c4bd}} else if{color:#c8c4bd} 
({color}"groovy-test-suite"{color:#c8c4bd}.equals(nodeName)) {{color}
try
{ Class<? extends TestCase> testClass = 
UtilGenerics.cast(GroovyUtil.getScriptClassFromLocation(testElement.getAttribute("location")));
 this.testList.add(new TestSuite(testClass, testElement.getAttribute("name"))); 
}
catch (GeneralException e)
{ Debug.logError(e, MODULE); }
}
{code}
{quote}
At least we can remove "groovy-test-suite" from test-suite.xsd. It's not used 
anywhere but in the code above. I even wonder if the code above is still useful 
since this "groovy-test-suite" is only there.

I'll have a look at it.

> Fix Java 17 two warning issues
> ------------------------------
>
>                 Key: OFBIZ-12722
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12722
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: base, testtools
>    Affects Versions: Upcoming Branch
>            Reporter: Jacques Le Roux
>            Assignee: 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)

Reply via email to