jaxb
  1. jaxb
  2. JAXB-404

XJC fails to generate getContent() method with mixed="true"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.1.4
    • Fix Version/s: not determined
    • Component/s: spec
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      404

      Description

      It seems like XJC fails to generate a getContent() accessor when a type is
      defined with the mixed="true" attribute and it is an extension of a type that is
      defined with a mixed="false" extension. Although the base type should not have a
      getContent() method, the derived one should, since it has its mixed attribute
      set to true.

      Please see the attached test case (schema and generated classes).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            afedoro
          • Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: