Summary: | [Reg] B3 Cannot enable disabled Bogus 1.0.1 feature | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Dejan Glozic <dejan> |
Component: | Update (deprecated - use Eclipse>Equinox>p2) | Assignee: | Dejan Glozic <dejan> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | celek |
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dejan Glozic
2002-08-22 11:11:34 EDT
See the original problem 22685. The UI portion of the problem is in the new activity constraint that does not allow optional children to be enabled if none of their parents are enabled. Two calls to obtain feature from the feature reference were made without testing if the feature reference is optional. For missing optional feature (a valid case), core exception was allowed to pass. The fix was to add an inner try/catch block when asking for a feature. In the catch block, feature reference is tested if it is optional. If yes, exception is ignored and the feature is skipped. Otherwise, the exception is rethrown (exception cannot be allowed for non-optional children). The fix has been tested and it appears to solve the problem in this bug. fixed |