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

schemagen does not report errors while generating xsd files

    Details

    • Subcomponent:
    • Introduced In Build:
      b27
    • Introduced In Version:
      8
    • Resolved In Build:
      b88
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: