[
https://jira.jboss.org/browse/JBOSGI-346?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler updated JBOSGI-346:
----------------------------------
Summary: Attached fragment hides private package in host (was: Imports in
attached fragment hide private classes in host )
Description:
The bundle's local packages are considered after its imports. If an attached fragment
imports a package, that package hides the bundle's local package with the same name.
// Bundle-SymbolicName: simple-hostA
// Private-Package: org.jboss.test.osgi.fragments.hostA,
org.jboss.test.osgi.fragments.subA
// Bundle-SymbolicName: simple-hostB
// Export-Package: org.jboss.test.osgi.fragments.subA
// Private-Package: org.jboss.test.osgi.fragments.hostB
// Bundle-SymbolicName: simple-fragB
// Import-Package: org.jboss.test.osgi.fragments.subA
// Fragment-Host: simple-hostA
hostA.loadClass(subA) is expected to come from hostB
was:
Running org.jboss.test.osgi.fragments.FragmentTestCase
FIXME [JBOSGI-336] Implement PackageAdmin.refreshPackages(Bundle[])
Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 23.318 sec <<<
FAILURE!
Results :
Failed tests:
testHiddenPrivatePackage(org.jboss.test.osgi.fragments.FragmentTestCase)
testFragmentRequireBundle(org.jboss.test.osgi.fragments.FragmentTestCase)
Attached fragment hides private package in host
------------------------------------------------
Key: JBOSGI-346
URL:
https://jira.jboss.org/browse/JBOSGI-346
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Core Framework
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.0.0 Beta8
The bundle's local packages are considered after its imports. If an attached fragment
imports a package, that package hides the bundle's local package with the same name.
// Bundle-SymbolicName: simple-hostA
// Private-Package: org.jboss.test.osgi.fragments.hostA,
org.jboss.test.osgi.fragments.subA
// Bundle-SymbolicName: simple-hostB
// Export-Package: org.jboss.test.osgi.fragments.subA
// Private-Package: org.jboss.test.osgi.fragments.hostB
// Bundle-SymbolicName: simple-fragB
// Import-Package: org.jboss.test.osgi.fragments.subA
// Fragment-Host: simple-hostA
hostA.loadClass(subA) is expected to come from hostB
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira