Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor with required attributes is not generated correctly when there is inheritance. #657

Open
jjjasper opened this issue Oct 3, 2023 · 0 comments
Assignees

Comments

@jjjasper
Copy link
Contributor

jjjasper commented Oct 3, 2023

This issue occurs when the first schema is defined in a "common" spec, or is an existing class, and a second spec refers to the previously generated class using `schemaMapping'

When a class defines a required property

    public AbstractSuperClass(String currency) {
      super();
          this.currency = currency;
    }

then the subclass

    /**
    * Constructor with only required parameters
    */
    public ConcreteSubClass(String currency) {
      super();
    }
@jjjasper jjjasper self-assigned this Oct 3, 2023
@jjjasper jjjasper changed the title Constructor with required attributes is not generated correctly in there is inheritance. Constructor with required attributes is not generated correctly when there is inheritance. Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant