Invalid "required" attribute

Asked

Viewed 52 times

0

I took a project and the same is showing compilation error because it is not recognizing the attribute "required" in the excerpt below:

@XmlElementRef(name = "Nome", namespace = "http://schemas.datacontract.org/teste/teste/teste", type = JAXBElement.class, required = false)

The error presented is:

The attribute required is Undefined for the Annotation type Xmlelementref

  • What version of Java are you using?

  • It is configured in Eclipse 1.6

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.