[
https://issues.apache.org/jira/browse/CXF-7998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794687#comment-16794687
]
Freeman Fang commented on CXF-7998:
-----------------------------------
OK, I believe this is a jaxb 2.3.x bug
The related code trying to load java src is like
{code}
// some people didn't like our jars to contain files with .java extension,
// so when we build jars, we'' use ".java_". But when we run from
the workspace,
// we want the original source code to be used, so we check both
here.
// see bug 6211503.
InputStream stream = loadingClass.getResourceAsStream(shortName +
".java");
if (stream == null) {
stream = loadingClass.getResourceAsStream(shortName + ".java_");
}
if (stream == null) {
throw new InternalError("Unable to load source code of " +
loadingClass.getName() + " as a resource");
}
return stream;
{code}
>From the comment above, the jar should contains .java file, and this is true
>for jaxb 2.2.x like
{code}
com/sun/tools/xjc/runtime/JAXBContextFactory.class
com/sun/tools/xjc/runtime/JAXBContextFactory.java
com/sun/tools/xjc/runtime/ZeroOneBooleanAdapter.class
com/sun/tools/xjc/runtime/ZeroOneBooleanAdapter.java
{code}
but for jaxb 2.3.x, the java source file get removed from jaxb jar, and this
cause such error
> case where cxf-codegen-plugin not working with jdk11
> ----------------------------------------------------
>
> Key: CXF-7998
> URL: https://issues.apache.org/jira/browse/CXF-7998
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 3.3.1
> Environment: cxf-codegen-plugin 3.3.1
> maven 3.6.0
> jdk11
> windows10
> Reporter: Matthias Unverzagt
> Assignee: Freeman Fang
> Priority: Critical
>
> A description with a maven project to reproduce the problem can be found on
> [https://github.com/enpasos/issue1]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)