-
Notifications
You must be signed in to change notification settings - Fork 7
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
Option builder fields are not generated for Stage builders / values #9
Comments
Apologies for the delay, I'm just seeing this bug report today! The definition of Option did change between |
@elucash Do you have any idea why this might be happening? I can't see anything in there that would suggest that staged builders would stop working... Here's the old (working) definition: Here's the current definition: We added some |
Any update on this? |
I think I found the problem. Immutables project itself has a big list of all types that it considers to be Optional types, and it's outdated since the rename to vavr from javaslang: I'll test and see. |
I think that list is unrelated, that list is for built-in support for certain types (including javaslang Optional, Atlassian's ones etc). The encodings (in theory) should replace any need for build-in support for them. The apparent problem is that while Optional encoding specifies types which are not mandatory to set, they are for some reason not picked up when |
Ah, thanks for the clarification. |
Thanks a lot for the vavr encoding, they're helping the the transition from javaslang to vavr a lot! 👍
Option<T>
fields inside builders marked asstagedBuilder=true
does not have appropriate methods generated toBuildFinal
interface.is compiled into
with javaslang 2.0.6 it's complied into
This might be issue also for other supported types (not tested though).
The text was updated successfully, but these errors were encountered: