[ 
https://issues.apache.org/jira/browse/CXF-8549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-8549:
------------------------------
    Description: 
Get rid of EasyMock in favor of Mockito since it does require additional access 
to sealed JDK internals for JDK-16 and above. Also, the EasyMock does not 
support JDK-21 as of today.

 
{noformat}
Caused by: java.lang.IllegalArgumentException: 
org.apache.cxf.io.CachedOutputStream$$$EasyMock$1 must be defined in the same 
package as org.easymock.internal.ClassProxyFactory
        at 
org.easymock.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635)
        at 
org.easymock.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118)
        at 
org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519)
        at 
org.easymock.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101)
        at 
org.easymock.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317)
        at 
org.easymock.internal.ClassProxyFactory.lambda$createProxy$0(ClassProxyFactory.java:146)
        at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
        ... 34 more {noformat}
 

[X] ./core/pom.xml
[ ] ./integration/jca/pom.xml
[X] ./rt/bindings/coloc/pom.xml
[X] ./rt/bindings/corba/pom.xml
[X] ./rt/bindings/soap/pom.xml
[X] ./rt/databinding/aegis/pom.xml
[ ] ./rt/databinding/jaxb/pom.xml
[ ] ./rt/features/clustering/pom.xml
[ ] ./rt/features/logging/pom.xml
[ ] ./rt/features/throttling/pom.xml
[X] ./rt/frontend/jaxrs/pom.xml
[X] ./rt/frontend/jaxws/pom.xml
[ ] ./rt/frontend/js/pom.xml
[X] ./rt/management/pom.xml
[ ] ./rt/rs/client/pom.xml
[X] ./rt/rs/description/pom.xml
[ ] ./rt/rs/extensions/providers/pom.xml
[ ] ./rt/rs/extensions/search/pom.xml
[ ] ./rt/rs/microprofile-client/pom.xml
[ ] ./rt/rs/security/oauth-parent/oauth2/pom.xml
[ ] ./rt/rs/security/oauth-parent/oauth2-saml/pom.xml
[ ] ./rt/rs/security/sso/oidc/pom.xml
[X] ./rt/transports/http/pom.xml
[X] ./rt/transports/http-jetty/pom.xml
[ ] ./rt/transports/http-netty/netty-client/pom.xml
[X] ./rt/transports/http-netty/netty-server/pom.xml
[X] ./rt/transports/http-undertow/pom.xml
[ ] ./rt/transports/jms/pom.xml
[X] ./rt/transports/websocket/pom.xml
[ ] ./rt/ws/addr/pom.xml
[X] ./rt/ws/policy/pom.xml
[ ] ./rt/ws/rm/pom.xml
[ ] ./rt/ws/security/pom.xml
[ ] ./rt/ws/transfer/pom.xml
[X] ./rt/wsdl/pom.xml
[ ] ./services/xkms/xkms-x509-handlers/pom.xml
[ ] ./services/xkms/xkms-x509-repo-ldap/pom.xml

  was:
Get rid of EasyMock in favor of Mockito since it does require additional access 
to sealed JDK internals for JDK-16 and above. Also, the EasyMock does not 
support JDK-21 as of today.

 
{noformat}
Caused by: java.lang.IllegalArgumentException: 
org.apache.cxf.io.CachedOutputStream$$$EasyMock$1 must be defined in the same 
package as org.easymock.internal.ClassProxyFactory
        at 
org.easymock.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635)
        at 
org.easymock.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118)
        at 
org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519)
        at 
org.easymock.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101)
        at 
org.easymock.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317)
        at 
org.easymock.internal.ClassProxyFactory.lambda$createProxy$0(ClassProxyFactory.java:146)
        at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
        ... 34 more {noformat}
 

[X] ./core/pom.xml
[ ] ./integration/jca/pom.xml
[ ] ./rt/bindings/coloc/pom.xml
[X] ./rt/bindings/corba/pom.xml
[X] ./rt/bindings/soap/pom.xml
[X] ./rt/databinding/aegis/pom.xml
[ ] ./rt/databinding/jaxb/pom.xml
[ ] ./rt/features/clustering/pom.xml
[ ] ./rt/features/logging/pom.xml
[ ] ./rt/features/throttling/pom.xml
[X] ./rt/frontend/jaxrs/pom.xml
[X] ./rt/frontend/jaxws/pom.xml
[ ] ./rt/frontend/js/pom.xml
[X] ./rt/management/pom.xml
[ ] ./rt/rs/client/pom.xml
[X] ./rt/rs/description/pom.xml
[ ] ./rt/rs/extensions/providers/pom.xml
[ ] ./rt/rs/extensions/search/pom.xml
[ ] ./rt/rs/microprofile-client/pom.xml
[ ] ./rt/rs/security/oauth-parent/oauth2/pom.xml
[ ] ./rt/rs/security/oauth-parent/oauth2-saml/pom.xml
[ ] ./rt/rs/security/sso/oidc/pom.xml
[X] ./rt/transports/http/pom.xml
[X] ./rt/transports/http-jetty/pom.xml
[ ] ./rt/transports/http-netty/netty-client/pom.xml
[ ] ./rt/transports/http-netty/netty-server/pom.xml
[X] ./rt/transports/http-undertow/pom.xml
[ ] ./rt/transports/jms/pom.xml
[X] ./rt/transports/websocket/pom.xml
[ ] ./rt/ws/addr/pom.xml
[X] ./rt/ws/policy/pom.xml
[ ] ./rt/ws/rm/pom.xml
[ ] ./rt/ws/security/pom.xml
[ ] ./rt/ws/transfer/pom.xml
[X] ./rt/wsdl/pom.xml
[ ] ./services/xkms/xkms-x509-handlers/pom.xml
[ ] ./services/xkms/xkms-x509-repo-ldap/pom.xml


> Get rid of EasyMock 
> --------------------
>
>                 Key: CXF-8549
>                 URL: https://issues.apache.org/jira/browse/CXF-8549
>             Project: CXF
>          Issue Type: Task
>    Affects Versions: 4.0.1, 3.6.1
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>            Priority: Major
>
> Get rid of EasyMock in favor of Mockito since it does require additional 
> access to sealed JDK internals for JDK-16 and above. Also, the EasyMock does 
> not support JDK-21 as of today.
>  
> {noformat}
> Caused by: java.lang.IllegalArgumentException: 
> org.apache.cxf.io.CachedOutputStream$$$EasyMock$1 must be defined in the same 
> package as org.easymock.internal.ClassProxyFactory
>       at 
> org.easymock.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635)
>       at 
> org.easymock.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118)
>       at 
> org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519)
>       at 
> org.easymock.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101)
>       at 
> org.easymock.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317)
>       at 
> org.easymock.internal.ClassProxyFactory.lambda$createProxy$0(ClassProxyFactory.java:146)
>       at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
>       ... 34 more {noformat}
>  
> [X] ./core/pom.xml
> [ ] ./integration/jca/pom.xml
> [X] ./rt/bindings/coloc/pom.xml
> [X] ./rt/bindings/corba/pom.xml
> [X] ./rt/bindings/soap/pom.xml
> [X] ./rt/databinding/aegis/pom.xml
> [ ] ./rt/databinding/jaxb/pom.xml
> [ ] ./rt/features/clustering/pom.xml
> [ ] ./rt/features/logging/pom.xml
> [ ] ./rt/features/throttling/pom.xml
> [X] ./rt/frontend/jaxrs/pom.xml
> [X] ./rt/frontend/jaxws/pom.xml
> [ ] ./rt/frontend/js/pom.xml
> [X] ./rt/management/pom.xml
> [ ] ./rt/rs/client/pom.xml
> [X] ./rt/rs/description/pom.xml
> [ ] ./rt/rs/extensions/providers/pom.xml
> [ ] ./rt/rs/extensions/search/pom.xml
> [ ] ./rt/rs/microprofile-client/pom.xml
> [ ] ./rt/rs/security/oauth-parent/oauth2/pom.xml
> [ ] ./rt/rs/security/oauth-parent/oauth2-saml/pom.xml
> [ ] ./rt/rs/security/sso/oidc/pom.xml
> [X] ./rt/transports/http/pom.xml
> [X] ./rt/transports/http-jetty/pom.xml
> [ ] ./rt/transports/http-netty/netty-client/pom.xml
> [X] ./rt/transports/http-netty/netty-server/pom.xml
> [X] ./rt/transports/http-undertow/pom.xml
> [ ] ./rt/transports/jms/pom.xml
> [X] ./rt/transports/websocket/pom.xml
> [ ] ./rt/ws/addr/pom.xml
> [X] ./rt/ws/policy/pom.xml
> [ ] ./rt/ws/rm/pom.xml
> [ ] ./rt/ws/security/pom.xml
> [ ] ./rt/ws/transfer/pom.xml
> [X] ./rt/wsdl/pom.xml
> [ ] ./services/xkms/xkms-x509-handlers/pom.xml
> [ ] ./services/xkms/xkms-x509-repo-ldap/pom.xml



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to