| Summary: | Resource#isConflicting is not symmetric | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Szymon Ptaszkiewicz <sptaszkiewicz> | ||||||
| Component: | Resources | Assignee: | Szymon Ptaszkiewicz <sptaszkiewicz> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P2 | CC: | john.arthorne | ||||||
| Version: | 3.8 | ||||||||
| Target Milestone: | 3.8 M3 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 254948, 415847 | ||||||||
| Attachments: |
|
||||||||
|
Description
Szymon Ptaszkiewicz
Created attachment 205691 [details]
Patch v1
You could just do something like this: if (rule instanceof MultiRule) return rule.isConflicting(this); (In reply to comment #2) > You could just do something like this: > > if (rule instanceof MultiRule) > return rule.isConflicting(this); True. I just wanted to keep the order of the arguments unchanged when calling subsequent #isConflicting. If we switch the order, it can be hard to debug further enhancements (like bug 254948). Created attachment 205732 [details] Patch v2 Adjusted to comment 2. Looks good. And that was a good find! Thanks for tracking this down. Shall I release this for M3? Assuming all core resource tests pass, go for it. Thanks! Fixed in master. |