Dan Retzlaff created CXF-4441:
---------------------------------

             Summary: Enabling XJC DV plugin creates invalid content
                 Key: CXF-4441
                 URL: https://issues.apache.org/jira/browse/CXF-4441
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.6.1
            Reporter: Dan Retzlaff
            Priority: Minor


CF-1206 introduces a behavior where complex types containing elements with 
default values get automatically instantiated in a parent. For example, given

A(complex) contains B(complex) contains C(simple with default)

A's constructor initializes "B b = new B()". This behavior goes beyond applying 
a default value; nothing in the schema says that A's "b" should be present by 
default.

In our case, the presence of B has semantic value. What's more, B contains 
additional required fields, so this "default" invalidates the content model.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to