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

Grzegorz Grzybek commented on CXF-7054:
---------------------------------------

The problem is with {{java.lang.Package#getPackageInfo()}}.

JDK8 does:
{code:java}
packageInfo = Class.forName(pkgName + ".package-info", false, loader);
{code}

and JDK9 does:
{code:java}
String cn = packageName() + ".package-info";
PrivilegedAction<ClassLoader> pa = module()::getClassLoader;
ClassLoader loader = AccessController.doPrivileged(pa);
Class<?> c = loader != null ? loader.loadLocalClass(cn)
                            : BootLoader.loadClassOrNull(cn);
{code}

so JDK8 uses delegation and JDK9 simply can't find {{package-info}}, because it 
was never _defined_ by 
{{org.apache.cxf.common.util.ASMHelper.TypeHelperClassLoader}}. And these 
classes generated ({{helper.loadClass(className + "Extensibility", loader, 
bytes)}} by {{org.apache.cxf.wsdl.JAXBExtensionHelper#createExtensionClass()}} 
have actually different module assigned.

> CORBADocLitClientTypeTest failed with java9
> -------------------------------------------
>
>                 Key: CXF-7054
>                 URL: https://issues.apache.org/jira/browse/CXF-7054
>             Project: CXF
>          Issue Type: Sub-task
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to