-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG]Order in collection is not preserved while using useImmutableCollections option #153
Comments
|
In most cases, reference to the original collection is not being kept and collection from the record is used. Another possible solution would be to treat |
Introducing the useUnmodifiableCollections option works for me. However, it didn't solve the issue reported here. |
@pawellabaj could you provide a PR? |
@Randgalt , I'm thinking of it. Do you consider introducing Guava as a dependency to your project? |
No - we shouldn't do that. We could, however, do FQPN string comparisons if needed. |
@Randgalt have you thought about introducing a plugins/extensions mechanism? |
At this point I'd like to limit any new customizations. This library ran into a lot of problems with some of the recently added customizations. |
When a record has a component of the type that is the
Set
implementation keeping the order, the order is lost when using useImmutableCollections = true option.Following test shows the problem:
Order is lost in
java.util.Set#copyOf
method used in generated__set
method.One of possible solution is te generate
__set
method as follow:The text was updated successfully, but these errors were encountered: