-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Transformation failure when a case class has a method starting with set
#424
Comments
Every method starting with In 0.7.x we also checked if return type is |
It would be nice if those |
I'd say I cannot do this: virtually every single time we "let something work out of the box, with opt-out option" we soon received a ticket that this is unsafe, results in unpredicatable code, and the default should be an error with an explicit resolution, otherwise the library is dangerous to use -_-". Examples OTOH:
Additionally, I remember some requests on Gitter, when we still used it, for disabling automatic wrapping/unwrapping of When Java Bean getters were initially implemented they were opt-out - #81 - but then we changed it to opt-in in c71a429 because of #85. So all in all, we converge towards disabling features by defaul based on the feedback from the community. If I enable something OOTB, I can start the timer till the mob with torches arrives. I see 2 things that could be done to address your issue:
|
I released 0.8.3 with |
Thanks! |
I am considering adding in 1.0.0-RC a flag to switch between 0.7.x and 0.8.x behavior, no ETA ATM. |
|
Checklist
TransformerF
s) orunsafeOption
flagsDescribe the bug
Given 2 case classes
A
andB
that have the same content, ifA
has a method starting withset
,B
can't be converted toA
.Reproduction
Scastie: https://scastie.scala-lang.org/ke3lsriNTSG6AOMivpvODQ
Expected behavior
Transformation should work.
Actual behavior
Transformation fails with:
Which Chimney version do you use
Version you used for confirming bug with a snippet.
Which platform do you use
If you checked JVM
JDK17
Additional context
Appeared in 0.8.0, working well in 0.7.x.
The text was updated successfully, but these errors were encountered: