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

EventData value changes are not applied after server reload #20548

Open
mshabarov opened this issue Nov 25, 2024 · 0 comments
Open

EventData value changes are not applied after server reload #20548

mshabarov opened this issue Nov 25, 2024 · 0 comments

Comments

@mshabarov
Copy link
Contributor

Description of the bug

Changes in @EventData value are not applied after server restart, when I use JRebel for live-reload.
As a developer, I want to immediately see the changes in event data, e.g. if I want to rename the event.detail parameter from @EventData("event.detail.position") to @EventData("event.detail.coordinate") and have a working Java event handling without full server restart or browser page refresh.

Expected behavior

Changes to event data are applied immediately after server reload, this is how it works when using HotswapAgent.
However, with JRebel it requires a page refresh or server restart.

Minimal reproducible example

  1. Change event.detail.coordinate to e.g. event.detail.coordinate111
  2. Start the project with JRebel
  3. Open localhost:8080
  4. Move the marker to other place on the map component
  5. Notice an exception in server logs and no pop up message
  6. Change the param name to event.detail.coordinate, save the file, wait for class reload
  7. Do step 4 and observe same issues in step 5.

Project example
event-data-jrebel.zip

Versions

  • Vaadin / Flow version: 24.6.0.beta
  • JRebel nightly build JRebel Agent 2024.4.2-SNAPSHOT (2024-11-21 11:38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔎 Investigation
Status: 🪵Product backlog
Development

No branches or pull requests

1 participant