| Summary: | org/eclipse/wst/server/core/internal/ServerNotificationManager bitwise kind check is incorrect | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Raymond Lai <rkklai> | ||||
| Component: | wst.server | Assignee: | Steven Hung <sghung> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| See Also: | https://git.eclipse.org/r/109071 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Raymond Lai
Created attachment 203308 [details]
Patch v1.0
The changes are as Raymond has described in his description.
Testing:
I used a server adapter that supports events for server state, module state, and module status.
A breakpoint was added into org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerEvent). When the breakpoint is hit, the stack was examined to determine which method had caused the broadcast.
The broadcast will do a bitwise OR of the type of event and the kind of event. I examine the kind that was used to create the broadcast and compared it to the value of org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerEvent).kindOnly.
The correct kind was extracted from the broadcast for :
1. fireModuleStateChangeEvent
2. fireModuleStatusChangeEvent
3. fireServerStateChangeEvent
I also verified that the mask was applied correctly and would return false or true as appropriate.
Changes looks good and the test looks sufficient. Code released to 32M and HEAD Code released to 32M New Gerrit change created: https://git.eclipse.org/r/109071 |