-
Notifications
You must be signed in to change notification settings - Fork 168
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
fix: check the component belongs to UI before task execution #11726
Conversation
@@ -995,6 +995,8 @@ public Router getRouter() { | |||
* | |||
* @return a registration that can be used to cancel the execution of the | |||
* task | |||
* @throws IllegalArgumentException | |||
* if the given component doesn't belong to this UI | |||
*/ | |||
public ExecutionRegistration beforeClientResponse(Component component, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the method should have throws
: javadoc is not necessary but if you extend javadocs then the method should throws
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
SonarQube analysis reported 3 issues
|
…#11788) Related-to #11599 Co-authored-by: Mikhail Shabarov <[email protected]>
This ticket/PR has been released with platform 21.0.2. |
This ticket/PR has been released with platform 14.7.1. |
Description
Adds an assumption that the given component belongs to UI instance on which the task is going to be executed. This is needed to fail-fast and detect errors earlier before the actual task is executed and throws because of inconsistency in
StateTree
.Related-to #11599
Type of change
Checklist
Additional for
Feature
type of change