/**
* The documentation that I need in my XSD....
*/
@XmlType(name = MyClass.MY_CONSTANT)
public class MyClass {
public static final String MY_CONSTANT = "MyClass";
...
}
No javadoc added do generated XSD.
Our current workaround is to inline the constant strings:
/**
* The documentation that I need in my XSD....
*/
@XmlType(name = "MyClass")
public class MyClass {
...
}
The problem seems to be related to the qdox lib which does not evaluate expressions but rather handles the sources as "strings" all the way.
Same problem as in https://github.com/mojohaus/jaxb2-maven-plugin/issues/25, but occurs when assigning a constant to the name-attribute of XmlType annotation.
Example:
No javadoc added do generated XSD. Our current workaround is to inline the constant strings:
The problem seems to be related to the qdox lib which does not evaluate expressions but rather handles the sources as "strings" all the way.