-
Notifications
You must be signed in to change notification settings - Fork 13
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
toBuilder-Method and primitive type boolean #18
Comments
Hey @radtke, thanks for opening the issue! That's a great catch, yes, the logic of figuring out the accessor should definitely also try the I'll work on a fix soon. Thanks, |
Thanks for your quick reply and your effort! |
Ok, this has been now fixed on |
This bug has been fixed in Jilt version Let me know if you run into any problems related to this, and I'd be happy to reopen this issue. |
Hi there,
i think maybe there's a bug generating the "toBuilder"-Method for Classes containing primitive type booleans.
The problem is in
AbstractBuilderGenerator.accessAttributeOfTargetClass(..)
which does not consider standard naming convention for primitive type boolean getter ("is" instead of "get").Here is an example.
My Class:
Generated Builder Class:
And of course,
subscriptionBuilder.active(subscription.active);
does not compile.The text was updated successfully, but these errors were encountered: