cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kosta Krauth (JIRA)" <>
Subject [jira] [Created] (CXF-5824) cxf-xjc-dv generates code that cannot be compiled
Date Thu, 26 Jun 2014 11:00:27 GMT
Kosta Krauth created CXF-5824:

             Summary: cxf-xjc-dv generates code that cannot be compiled
                 Key: CXF-5824
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: Kosta Krauth

After updating to CXF 3.0.0 I noticed compile errors in classes generated from XSDs using
wsdl2java with cxf-xjc-dv plugin.

The problematic piece of generated code showed up in a couple of places and looked like this:
protected List<ExternalItem> redemptions = new List<ExternalItem>();

Resulting in "Cannot instantiate the type List" error. The type list in this case was not
a custom class but the standard java collections interface java.util.List.

My setup is (roughly) as follows:

*Schema definition*

<s:element name="itemRedemption">
        <s:element name="userId" type="s:string" />
        <s:element name="redemptions" maxOccurs="unbounded" type="tns:externalItem" />
  <s:complexType name="externalItem">
      <s:element minOccurs="0" name="redemptionNumber" type="s:string" />

* Maven config *


            <bareMethods />
              <extraarg>-xjc-Xdv</extraarg> <!-- Activates plugin for default
value support -->
              <extraarg>-xjc-Xbgi</extraarg> <!-- Creates both get/is methods
for booleans -->



If I change the version of cxf-xjc-dv to 2.7.0, this problem does not happen.

This message was sent by Atlassian JIRA

View raw message