Hi,
We have a robust split utility method in ManifestHeaderProcessor. For
splitting manifest.mf headers, we should use that instead of duplicating
code everywhere. For the bug reported, the following change will fix the
problem
for (String headerDeclaration : headerStatement.split("\\s*,\\s*")) {
to
for (String headerDeclaration : ManifestHeaderProcessor.split(
headerStatement, ",") {
By the way, I tested out the changes with Rex's test and it worked.
I will raise a bug to put a easier and better maintainable change. Please
let me know if you have different opinion.
Many thanks and kindest regards,
Emily
===========================
Emily Jiang
WebSphere ESB Foundation Technologies
MP 211, DE3A25, Winchester, Hampshire, England, SO21 2JN
Phone: +44 (0)1962 816278 Internal: 246278
Email: [email protected]
Lotus Notes: Emily Jiang/UK/i...@ibmgb
From: "Rex Wang (JIRA)" <[email protected]>
To: [email protected]
Date: 14/09/2010 10:26
Subject: [jira] Resolved: (ARIES-405) getBundleImportedPackages()
of FrameworkUtils does not split package declarations correctly
[
https://issues.apache.org/jira/browse/ARIES-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rex Wang resolved ARIES-405.
----------------------------
Resolution: Fixed
resolved at revision: 996807
> getBundleImportedPackages() of FrameworkUtils does not split package
declarations correctly
>
-------------------------------------------------------------------------------------------
>
> Key: ARIES-405
> URL: https://issues.apache.org/jira/browse/ARIES-405
> Project: Aries
> Issue Type: Bug
> Components: JMX
> Affects Versions: 0.1, 0.2
> Reporter: Rex Wang
> Fix For: 0.3
>
> Attachments: screenshot-1.jpg
>
>
> if the import package header has the following content:
>
junit.framework;resolution:=optional;version="[3.8.1,4)",org.apache.commons.logging;version="[1.0,2)"
> then, it will split to 4 pieces:
> junit.framework;resolution:=optional;version="[3.8.1
> 4)"
> org.apache.commons.logging;version="[1.0,
> 2)"
> Apparently, it is not correct.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU