You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2018/10/19 03:52:07 UTC

[cxf] branch master updated: [CXF-7876]fix XMLMessageInterceptorTest failures with openjdk11

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new f70768f  [CXF-7876]fix XMLMessageInterceptorTest failures with openjdk11
f70768f is described below

commit f70768f7b7fa95305949a5b7df9bbc14bb48add3
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Fri Oct 19 11:51:52 2018 +0800

    [CXF-7876]fix XMLMessageInterceptorTest failures with openjdk11
---
 .../test/java/org/apache/cxf/binding/xml/interceptor/TestBase.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/TestBase.java b/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/TestBase.java
index 055e800..66d1b65 100644
--- a/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/TestBase.java
+++ b/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/TestBase.java
@@ -37,6 +37,7 @@ import org.apache.cxf.binding.xml.XMLBindingFactory;
 import org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader;
 import org.apache.cxf.endpoint.Endpoint;
 import org.apache.cxf.endpoint.EndpointImpl;
+import org.apache.cxf.helpers.JavaUtils;
 import org.apache.cxf.jaxb.JAXBDataBinding;
 import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.ExchangeImpl;
@@ -86,6 +87,10 @@ public class TestBase extends Assert {
         messageImpl.setInterceptorChain(chain);
         messageImpl.setExchange(exchange);
         xmlMessage = messageImpl;
+        if (JavaUtils.isJava11Compatible()) {
+            //we need this property with JDK11 and easymock4
+            System.setProperty("org.easymock.cglib.experimental_asm7", "true");
+        }
     }
 
     @After