[
https://jira.jboss.org/jira/browse/JBOSGI-153?page=com.atlassian.jira.plu...
]
Thomas Diesler updated JBOSGI-153:
----------------------------------
Description:
//Bundle-Name: NotBundleA
//Bundle-Version: 1.0.0
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.notbundleA
//Export-Package: org.jboss.test.osgi.classloader.support.a
//Bundle-Name: BundleA
//Bundle-Version: 1.0.0
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.bundleA;test=x
//Export-Package: org.jboss.test.osgi.classloader.support.a;version=1.0.0;test=x
//Bundle-Name: BundleB
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.bundleB
//Import-Package:
org.jboss.test.osgi.classloader.support.a;bundle-symbolic-name=org.jboss.test.osgi.classloader.bundleA
09:04:56,492 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
09:04:56,502 INFO [BundleResolver] #1
*****************************************************************
09:04:56,502 INFO [BundleResolver] Unresolved bundles:
[Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}]
09:04:56,503 INFO [BundleResolver] Resolving:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
09:04:56,504 INFO [BundleResolver] Resolved:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
org.jboss.test.osgi.classloader.support.a
Bundle{org.jboss.test.osgi.classloader.notbundleA:1.0.0}
09:04:56,504 INFO [BundleResolver] END
*****************************************************************
The resolver does not see
bundle-symbolic-name=org.jboss.test.osgi.classloader.bundleA
and incorrectly maps to
Bundle{org.jboss.test.osgi.classloader.notbundleA:1.0.0}
was:
The AbstractOSGiMetaData.parseSymbolicName() cannot always parse the symbolic name
Currently there is a hack in place falls back to the main attribute
public String getBundleSymbolicName()
{
String symbolicName = null;
ParameterizedAttribute parameters = parseSymbolicName();
if (parameters != null)
symbolicName = parameters.getAttribute();
// [TODO] Remove this fall back
if (symbolicName == null)
symbolicName = getMainAttribute(Constants.BUNDLE_SYMBOLICNAME);
if (symbolicName == null)
throw new IllegalStateException("Cannot obtain " +
Constants.BUNDLE_SYMBOLICNAME);
return symbolicName;
}
Cannot parse Import Package parameters
--------------------------------------
Key: JBOSGI-153
URL:
https://jira.jboss.org/jira/browse/JBOSGI-153
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Core
Reporter: Thomas Diesler
Assignee: Adrian Brock
Fix For: Framework 1.0.x
//Bundle-Name: NotBundleA
//Bundle-Version: 1.0.0
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.notbundleA
//Export-Package: org.jboss.test.osgi.classloader.support.a
//Bundle-Name: BundleA
//Bundle-Version: 1.0.0
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.bundleA;test=x
//Export-Package:
org.jboss.test.osgi.classloader.support.a;version=1.0.0;test=x
//Bundle-Name: BundleB
//Bundle-SymbolicName: org.jboss.test.osgi.classloader.bundleB
//Import-Package:
org.jboss.test.osgi.classloader.support.a;bundle-symbolic-name=org.jboss.test.osgi.classloader.bundleA
09:04:56,492 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
09:04:56,502 INFO [BundleResolver] #1
*****************************************************************
09:04:56,502 INFO [BundleResolver] Unresolved bundles:
[Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}]
09:04:56,503 INFO [BundleResolver] Resolving:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
09:04:56,504 INFO [BundleResolver] Resolved:
Bundle{org.jboss.test.osgi.classloader.bundleB:0.0.0}
org.jboss.test.osgi.classloader.support.a
Bundle{org.jboss.test.osgi.classloader.notbundleA:1.0.0}
09:04:56,504 INFO [BundleResolver] END
*****************************************************************
The resolver does not see
bundle-symbolic-name=org.jboss.test.osgi.classloader.bundleA
and incorrectly maps to
Bundle{org.jboss.test.osgi.classloader.notbundleA:1.0.0}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira