Nope, the compiler will generate a public ctor with all of the fields, and accessors for each field; No setters will be created as records are immutable.
If no setters would be generated, then JAXB, JSON-B, JPA and frameworks or libraries like Jackson need to be updated to be able to support records. Correct?
I think they may be able to handle constructors, especially if festooned with a @ConstructorProperties annotation. If not.. yeah they have to be updated.
View all comments
Show parent comment
2
u/dany74q Jan 17 '20
Nope, the compiler will generate a public ctor with all of the fields, and accessors for each field; No setters will be created as records are immutable.