| Summary: | [localdiscovery] File-based discovery bundle tracker tracks RESOLVE bundles | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Neil Bartlett <njbartlett> | ||||
| Component: | ecf.remoteservices | Assignee: | Scott Lewis <slewis> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bugs.eclipse.org, slewis | ||||
| Version: | 3.3.0 | ||||||
| Target Milestone: | 3.4.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Neil Bartlett
Fix released to HEAD. Fix was to replace previously used state mask (36 == RESOLVED | ACTIVE), with: bt = new BundleTracker(context, Bundle.ACTIVE | Bundle.STARTING, new BundleTrackerImpl(this)); Thanks Neil for the report. Resolving as fixed. This fix breaks all three unit tests. https://build.ecf-project.org/hudson/job/C-HEAD-discovery.local.feature/12/testReport/ (In reply to comment #2) > This fix breaks all three unit tests. > https://build.ecf-project.org/hudson/job/C-HEAD-discovery.local.feature/12/testReport/ The problem appears to be, that now the BundleTracker sends multiple events for the same bundle contributions in the STARTING as well as the ACTIVE state. Removing lazystart from both "...poststarted" test bundles fixes the unit tests. This is a correct fix as those tests are supposed to test cases where bundles are activated explicitly. They are not meant to test lazy activation. ATM we simply don't test lazy activation. Created attachment 179969 [details]
mylyn/context/zip
|