I am trying to use annotations at the package level, but getting compilation from Eclipse.
I have a Head class with the following package / annotation:
@javax.xml.bind.annotation.XmlSchema ( xmlns = { @javax.xml.bind.annotation.XmlNs(prefix = "com", namespaceURI="http://es.indra.transporte.common"), @javax.xml.bind.annotation.XmlNs( namespaceURI="http://www.w3.org/2001/XMLSchema") }, namespace = "http://es.indra.transporte.common", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED, attributeFormDefault = javax.xml.bind.annotation.XmlNsForm.UNQUALIFIED ) package es.indra.transporte.central.thalesinterface.common.beans;
I created the package-info.java folder in es.indra.transporte.central.thalesinterface.common.beans with the above code, but I still get a compilation error
Annotations to packages should be in the package-info.java file
in Head class. I am using jdk6.
source share