[
https://issues.apache.org/jira/browse/ARIES-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Ross resolved ARIES-1408.
------------------------------
Resolution: Fixed
http://svn.apache.org/viewvc?rev=1703933&view=rev
> 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
> Assignee: John Ross
> 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)