aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1338) Bundle manifest parser does not allow multiple packages on Import-Package clause
Date Wed, 24 Feb 2016 19:19:18 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15163549#comment-15163549
] 

ASF subversion and git services commented on ARIES-1338:
--------------------------------------------------------

Commit 1732208 from [~jwross@us.ibm.com] in branch 'aries/trunk'
[ https://svn.apache.org/r1732208 ]

[ARIES-1338] Bundle manifest parser does not allow multiple packages on Import-Package clause

When converting an import package header into a requirement, the implementation now checks
each clause for the presence of multiple package names and, if necessary, creates multiple
requirements for that clause.

> Bundle manifest parser does not allow multiple packages on Import-Package clause
> --------------------------------------------------------------------------------
>
>                 Key: ARIES-1338
>                 URL: https://issues.apache.org/jira/browse/ARIES-1338
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.6, subsystem-2.0.8
>            Reporter: Samuel Bratton
>            Priority: Minor
>
> Parsing a bundle manifest fails on Import-Package if a clause contains more than one
target (package) for example, this syntax fails:
> Import-package: org.apache.p1; org.apache.p2; vendor="Apache"
> When the bundle with  above manifest appears as content in an esa, an exception is thrown:
> java.lang.IllegalArgumentException: Only one package name per requirement allowed
>    at org.apache.aries.subsystem.core.archive.ImportPackageRequirement.<init>(ImportPackageRequirement.java:39)
>    at org.apache.aries.subsystem.core.archive.ImportPackageHeader$Clause.toRequirement(ImportPackageHeader.java:159)
>    at org.apache.aries.subsystem.core.archive.ImportPackageHeader.toRequirements(ImportPackageHeader.java:218)
>    at org.apache.aries.subsystem.core.internal.BundleResource.computeOsgiWiringPackageRequirements(BundleResource.java:182)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message