You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2026/10/21 07:05:00 UTC
[jira] [Created] (CXFXJC-51) Remove the cxf-xjc-bug671 plugin
Colm O hEigeartaigh created CXFXJC-51:
-----------------------------------------
Summary: Remove the cxf-xjc-bug671 plugin
Key: CXFXJC-51
URL: https://issues.apache.org/jira/browse/CXFXJC-51
Project: CXF XJC Utils
Issue Type: Improvement
Reporter: Colm O hEigeartaigh
Fix For: 4.3.0
The {{cxf-xjc-bug671}} plugin ({{{}-Xbug671{}}}) worked around JAXB issue 671. When a namespace URI contained a Java keyword ({{{}int{}}}, {{{}class{}}}, {{{}new{}}}, ...), XJC generated invalid package names. The plugin fixed this with a custom {{NameConverter}} that puts {{_}} in front of any package segment that isn’t a valid Java identifier.
Current XJC fixes this without the plugin. With jaxb-xjc 4.0.9, the namespace {{http://www.example.com/int/class/new/2.0}} maps to the package {{com.example._int._class._new._2}} without {{{}-Xbug671{}}}. The plugin no longer changes anything, and Apache CXF itself doesn’t use it.
Proposed change:
* Remove the {{bug671}} module from the build and from the README.
* Note the removal in the release notes. Users can drop {{-Xbug671}} and the {{cxf-xjc-bug671}} dependency, and the generated code stays the same.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)