[
https://issues.apache.org/jira/browse/CXF-8381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko resolved CXF-8381.
-------------------------------
Resolution: Information Provided
[~peterdm]I am closing this one, the cause is not really related to CXF, feel
free to open an issue against EasyMock, thank you.
> 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)