Wouter Bancken created ARIES-1408:
-------------------------------------
Summary: The RequireCapabilityHeader currently only supports
requirements defined by the Aries implementation
Key: ARIES-1408
URL: https://issues.apache.org/jira/browse/ARIES-1408
Project: Aries
Issue Type: Bug
Components: Subsystem
Affects Versions: subsystem-2.0.2
Reporter: Wouter Bancken
Fix For: subsystem-2.0.3
The RequireCapabilityHeader currently only supports requirements defined by the
Aries implementation and it does not allow any custom Requirement subclasses.
This is caused by the following if statement:
!(requirement instanceof RequireCapabilityRequirement
|| requirement instanceof OsgiExecutionEnvironmentRequirement)
This statement was introduced to tackle the issues concerning the equals and
hashcode methods in ARIES-1387. A better solution to this issue would be to use
the equality specifications from the specs to determine equality of clauses.
Additionally the current instanceof comparison only supports
RequireCapabilityRequirement and OsgiExecutionEnvironmentRequirement classes
from the aries classloader. IllegalArgumentExceptions will be thrown when using
a RequireCapabilityRequirement originating from a different classloader.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)