I am getting the below error when using the jdk 1.6 but it is working in 1.7
cannot find symbol method required() javax.xml.bind.annotation.XmlElementRef
any idea?
@XmlElementRef(name = "test", type = JAXBElement.class, required = false)
protected JAXBElement<String> test;
Check documentation of XmlElementRef annotation in Java 1.6 here. There is no required
element in it. That is why you are getting this exception.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With