jimma commented on issue #365: [CXF-7520]:Ensure CXF can build with JDK9 GA(build 9+181) URL: https://github.com/apache/cxf/pull/365#issuecomment-357189645 > As Dan pointed out, the big issue is that your code impose compulsory restrictions on that the CXF runtime must have jaxb-impl jar dependency. Otherwise you run into ClassNotFoundException, as the class name is com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler in JDK version but not com.sun.xml.bind.marshaller.CharacterEscapeHandler, the package name is different. In this case the DataWriter can't be created at all. I don't think we should introduce this compulsory dependency. @ffang cxf-core now depends on jaxb impl class NamespacePrefixMapper ( https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/common/jaxb/NamespaceMapper.java), so we must have this class in the classpath to compile . cxf-core doesn't work for jdk8 without jaxb impl under classpath.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
