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

schemagen does not report errors while generating xsd files

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: