Skip to content

Conversation

@vaadin-bot
Copy link
Collaborator

This PR cherry-picks changes from the original PR #23150 to branch 25.0.

Original PR description

StyleSheetHotswapper registers a UIInitListener and a AfterNavigationListener when it gets initialized. However, lambdas are capturing the hotswapper instance that is not serializable and furthermore keeps a reference to VaadinService. This change refactors the listeners so that they will not capture the StyleSheetHotswapper instance.

Fixes #23123

StyleSheetHotswapper registers a UIInitListener and a AfterNavigationListener
when it gets initialized. However, lambdas are capturing the hotswapper instance
that is not serializable and furthermore keeps a reference to VaadinService.
This change refactors the listeners so that they will not capture the
StyleSheetHotswapper instance.

Fixes #23123
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) January 9, 2026 08:32
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Test Results

1 310 files  1 310 suites   1h 15m 7s ⏱️
9 276 tests 9 208 ✅ 68 💤 0 ❌
9 730 runs  9 654 ✅ 76 💤 0 ❌

Results for commit 379104d.

@vaadin-bot vaadin-bot merged commit dcd5e70 into 25.0 Jan 9, 2026
30 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-23150-to-25.0-1767947108831 branch January 9, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants