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

setting generateNoArgsConstructorOnly to true generates non-compileable source files #1154

Closed
andreloeffelmann opened this issue Apr 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@andreloeffelmann
Copy link
Contributor

Issue Description

Since #1037, the plugin will generate classes that won't compile when setting generateNoArgsConstructorOnly to true.
Reason: the braces () are missing when instantiating a class in the build() method of any DTO class.
Example:

public MyExampleDto build() {
            MyExampleDto result = new MyExampleDto;
            result.cursor(this.cursor);
            result.node(this.node);
            return result;
}
@kobylynskyi
Copy link
Owner

Thanks for reporting this issue and fixing it! It seems like a silly mistake and I am wondering why unit-tests didn't catch this.
Anyways, will release a new version this week.

@kobylynskyi kobylynskyi added this to the 5.7.2 milestone Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants