[#JAXB-300] A property annotated w/ @XmlMixed generates a

advertisement

[JAXB-300]

A property annotated w/ @XmlMixed generates a schema element that does not permit the content to be just plain text

Created: 08/Jan/07 Updated:

11/Jan/11 Resolved: 18/Jan/07

Status: Resolved

Project: jaxb

Component/s: schemagen

Affects

Version/s:

Fix Version/s: 2.1.1

Type: Bug

Reporter:

Resolution:

Labels:

2.1

akaranta

Fixed

None

Not Specified Remaining

Estimate:

Time Spent:

Original

Estimate:

Not Specified

Not Specified

Environment: Operating System: All

Platform: All

Issuezilla Id:

Description

300

The problem is described here:

Priority:

Assignee:

Votes:

Major jaxb-issues

0 http://forums.java.net/jive/thread.jspa?threadID=18717&tstart=0

If required, I can post a minimal example complete w/ ant build file.

Comments

Comment by akaranta

[ 08/Jan/07 ]

Hmm, sorry, I misinterpreted my test... the problem is not the @XmlList element but the @XmlMixed - it does not allow for plain text content. The cause of the problem (in the generated schema) is the same -

<xs:choice maxOccurs="unbounded"> instead of

<xs:choice minOccurs="0" maxOccurs="unbounded">

The example of how to reproduce can be found on the thread whose link is in this issue. And like I said in that thread, I can post a simple example that reproduces the problem complete w/ ant build file if you want.

Comment by kohsuke

[ 18/Jan/07 ]

Fixed.

Generated at Tue Feb 09 22:19:43 UTC 2016 using JIRA 6.2.3#6260sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.

Download