[
https://issues.apache.org/jira/browse/CXF-8381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter De Maeyer updated CXF-8381:
---------------------------------
Affects Version/s: (was: 3.4.1)
> 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 with 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)