Hello,
I have an schema segment that looks like this:
<xs:attribute name="inheritedCount" type="xs:int" use="optional">
It generates code like this:
@XmlAttribute(name = "inheritedCount")
protected Integer inheritedCount;
public int getInheritedCount() {
return inheritedCount;
}
So, when getInheritedCount() is called, a NullPointerException is thrown
when Java autoboxes Integer->int.
Is there anyway to force JAXB/XJC to use Integer as a return type for
xs:int?
Thanks,
Lucas Madar