Affects Version/s: 2.4.x, 2.5.x
Fix Version/s: 2.5.0-beta-2
An undocumented feature of @Builder is that the builder's constructor can set default values for the fields. See http://stackoverflow.com/questions/35066664/default-values-in-groovy-builder-ast
I tried creating an ExternalStrategy @Builder annotation for BaseClientDetails with a constructor that set a default scope. I received a MissingMethodException exception, which I thought was odd.
I added some tests to BuilderTransformTest that demonstrate apparent problems using the external builder in two situations:
1) A groovy class with private fields and manually defined setters.
2) A java class with a private Set field and a setter that takes a Collection
I noticed this in 2.4.x. My tests fail in the 2.5.x branch also.