Created a test-class which has syntax error, and provided as input to schemagen for xsd generation. The schemagen doesnt report any errors and simply exits. import javax.xml.bind.annotation.XmlType; @XmlType public class TestClassType { public int a; compile-error; } command: schemagen TestClassType.java When the input file has no errors the schema file gets generated.
|