Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8073519

schemagen does not report errors while generating xsd files

XMLWordPrintable

    • b27
    • 8
    • b88
    • generic
    • generic
    • Verified

        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.

              aefimov Aleksej Efimov
              bgopularam Bhanu Prakash Gopularam (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: