Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: prevent Optional capture in serializable predicate #20360

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

mcollovati
Copy link
Collaborator

Optional is not serializable, so capturing it into a SerializablePredicate will prevent serialization to succeed.

Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.
Copy link

Copy link

Test Results

1 142 files  +26  1 142 suites  +26   1h 25m 56s ⏱️ - 1m 6s
7 475 tests +27  7 425 ✅ +27  50 💤 ±0  0 ❌ ±0 
7 833 runs  +42  7 773 ✅ +42  60 💤 ±0  0 ❌ ±0 

Results for commit ee7bebc. ± Comparison against base commit f1c9673.

tepi
tepi previously approved these changes Oct 29, 2024
@mcollovati
Copy link
Collaborator Author

@tepi @mshabarov do you think we should also address #20361 in this PR?

@mshabarov
Copy link
Contributor

@mcollovati yes, let's address here all these reported issues with Optional, if possible.

@mcollovati mcollovati dismissed tepi’s stale review October 29, 2024 07:58

Should be reviewed again after changes for #20361

@mcollovati mcollovati requested a review from tepi October 29, 2024 10:14
@mcollovati
Copy link
Collaborator Author

#20361 has been closed because the real culprit of the serialization issue was in AbstractListDataView.
No changes, the PR can be re-approved and merged

@tepi tepi merged commit 1ea3bc5 into main Oct 29, 2024
26 checks passed
@tepi tepi deleted the fix/dataview_filter_serialization branch October 29, 2024 10:41
vaadin-bot pushed a commit that referenced this pull request Oct 29, 2024
Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.
vaadin-bot pushed a commit that referenced this pull request Oct 29, 2024
Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.
vaadin-bot pushed a commit that referenced this pull request Oct 29, 2024
Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.
vaadin-bot pushed a commit that referenced this pull request Oct 29, 2024
Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.
vaadin-bot added a commit that referenced this pull request Oct 29, 2024
)

Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request Oct 29, 2024
)

Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request Oct 29, 2024
)

Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request Oct 29, 2024
)

Optional is not serializable, so capturing it into a
SerializablePredicate will prevent serialization to succeed.

Co-authored-by: Marco Collovati <marco@vaadin.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha2 and is also targeting the upcoming stable 24.6.0 version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants