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
[FEATURE] Value annotation should use already defined private constructor #2100
Comments
I understand the request, and think it is a good idea to generate the static method if |
If someone would create a pull request with implementations for ecj and javac and create test files in our test infrastructure, this gets higher priority. |
Liked the idea and have have a pull request up for this here #2119 |
It's fixed. We just need to add it to the changelog. |
Describe the feature
When I use the @value annotation with staticConstructor = "of" and a private Constructor is already defined, Lombok should use the private Constructor to generate a static of Constructor.
Lomboked version
Java version
Describe the target audience
Every programer who want's to do DDD and validate its value objects in the constructor to have only valid domain objects.
Additional context
Currently when a private constructor is already defined no static of constructor will be generated at all.
The text was updated successfully, but these errors were encountered: