jakartaee / jakartaee/jaxb-api
XJC fails to generate getContent() method with mixed="true"
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.