JAXB required=true doesn't seem to require
Posted
by Marcus
on Stack Overflow
See other posts from Stack Overflow
or by Marcus
Published on 2010-04-19T17:49:16Z
Indexed on
2010/04/19
17:53 UTC
Read the original article
Hit count: 515
We have this JAXB annotation:
@XmlElement(name = "Strategy", required = true)
protected List<Strategy> strategy;
If there are no Strategy
elements present, no exception is thrown.. why is this? Shouldn't we get an exception?
© Stack Overflow or respective owner