Skip to content
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

Ensure type safety and serializable nature of all the listeners #12045

Merged
merged 9 commits into from
Jul 3, 2020

Conversation

TatuLund
Copy link
Contributor

@TatuLund TatuLund commented Jul 1, 2020

EventRouter did not require the listeners to be rooted to SerializableEventListener and used just Object. This had lead to situation where some listeners were not descentants of SerializableEventListener, but other types. This inturn had lead to situation that some internally used lambdas were not rooted to SerializableEventListener but Object, potentially allowing non-serializable session. This patch fixes the problem. By ensuring the type safety, this should not be no longer possible when new listeners are being added to the framework. Note, many of the existing listeners were correctly extending SerializableEventListener, but not all of them.


This change is Reviewable

Copy link
Member

@Ansku Ansku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 33 of 36 files at r1, 3 of 4 files at r2, 1 of 1 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants