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

Andriy Redko commented on CXF-8381:
-----------------------------------

Thanks pointing it out [~peterdm] , AFAIK EasyMock is still used in test cases 
predating the Mockito era, we are trying to migrate them upon occasions (when 
appear in feature or bugfix fe) but  there is no targeted effort to do just 
that. It seems like we are on the latest release of EasyMock though  ...

> EasyMock is causing illegal reflective access warning with Java 11
> ------------------------------------------------------------------
>
>                 Key: CXF-8381
>                 URL: https://issues.apache.org/jira/browse/CXF-8381
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Peter De Maeyer
>            Priority: Minor
>
> When I build cxf master (SHA1 ID 
> {{74ede52ee9594bad61608150d441f1d9a49701aa}}) with OpenJDK Java 11, there is 
> a warning about an illegal reflective access operation:
> {noformat}
> [ERROR] WARNING: An illegal reflective access operation has occurred
> [ERROR] WARNING: Illegal reflective access by 
> org.easymock.cglib.core.ReflectUtils$1 
> (file:/home/peter/.m2/repository/org/easymock/easymock/4.2/easymock-4.2.jar) 
> to method 
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> [ERROR] WARNING: Please consider reporting this to the maintainers of 
> org.easymock.cglib.core.ReflectUtils$1
> [ERROR] WARNING: Use --illegal-access=warn to enable warnings of further 
> illegal reflective access operations
> [ERROR] WARNING: All illegal access operations will be denied in a future 
> release
> {noformat}
> This probably needs to be fixed in EasyMock, or maybe it is already fixed in 
> EasyMock and CXF just needs to bump the version of the dependency?
> Slightly off topic: I was surprised EasyMock is still alive...
> I switched from EasyMock to Mockito 10+ years ago, across different companies 
> and different projects, and never looked back.
> Could CXF consider switching to Mockito too?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to