jakartaee / jakartaee/jaxb-api

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

Open
#244 9 comments 0 reactions 1 assignee View on GitHub

@glassfishrobot is already working on this.

Since Sep 21, 2018.

bug Critical
Dominant language
Java
Stars
79
Forks
48
Avg merge
7h 12m
Merged PRs (30d)
2

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).
#### Environment
Operating System: Windows XP
Platform: PC
#### Affected Versions
[2.1.4]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.