Search code examples
java-8wsimport

wsimport generates &lt; instead of <


Maybe this has been answered already but I'll ask anyway since I don't find an answer.

When running wsimport on a wsdl the Javadoc in the generated classes starts their lines with

&lt;

This doesn't work with jdk8 and maven.

The lines ends with a normal >

How can I make the lines start with a <?


Solution

  • I am quite sure that your diagnosis is reversed: the errors you get with Java 8 are about those "normal" > characters because the new, strict Javadoc rules state that you must escape both < and >. Refer to this related question for more details. There is a workaround which involves a flag to disable the strictness.