Ticket #145 (closed defect: fixed)
OT/Equinox weaving fails for sub classes of bound base classes
| Reported by: | stephan | Owned by: | stephan |
|---|---|---|---|
| Priority: | major | Milestone: | OTDT_1.2.3 |
| Component: | otequinox | Version: | 1.2.1 |
| Keywords: | Cc: |
Description
If a role callin-binds to a base method that is overridden in sub-classes of the bound base class, the OTRE needs to weave into those sub-classes, too. In an OT/Equinox setting, this currently fails, because OT/Equinox sees no reason to transform the sub-class and skips the ObjectTeamsTransformer for it.
As a workaround, the aspect code needs to add empty role classes just to make the binding to sub-classes explicit. Examples are in org.objectteams.otdt.debug.adaptor.launching, e.g.:
- PDEUILaunchingAdaptor, roles MainTab and OSGiTab (same base plugin)
- DebugUIDialogAdaptor2 and DebugUIDialogAdaptor3 (different base plugins)
For experimentation, the flag -Dotequinox.weave=<bundle-list> can be passed to force considering all classes of the given bundles for transformation.
all news
RSS feed