Benson Margulies created FELIX-4971: ---------------------------------------
Summary: gogo runtime does not import what it exports Key: FELIX-4971 URL: https://issues.apache.org/jira/browse/FELIX-4971 Project: Felix Issue Type: Bug Reporter: Benson Margulies I hope I have this story straight. The gogo runtime instructions quoted below do not import org.apache.felix.service.command. As a result, I cannot export that package from the system bundle and obtain a CommandProcessor reference from 'outside' the framework, as I get a class cast exception when the code outside tries to dereference the service reference. If this is the correct analysis, I will submit a PR to add the missing import. {code} <instructions> <Export-Service> org.apache.felix.service.threadio.ThreadIO, org.apache.felix.service.command.CommandProcessor </Export-Service> <Export-Package> org.apache.felix.service.command; org.apache.felix.service.threadio; version=${project.version}; status="provisional"; mandatory:="status", org.apache.felix.gogo.api; version=${project.version} </Export-Package> <Import-Package> org.osgi.service.event*; resolution:=optional, org.osgi.service.log*; resolution:=optional, org.osgi.service.packageadmin*; resolution:=optional, org.osgi.service.startlevel*; resolution:=optional, * </Import-Package> <Private-Package>org.apache.felix.gogo.runtime*</Private-Package> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> <Bundle-Activator>org.apache.felix.gogo.runtime.activator.Activator</Bundle-Activator> <Include-Resource>{maven-resources},META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,META-INF/DEPENDENCIES=DEPENDENCIES</Include-Resource> <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy> <_removeheaders>Private-Package,Ignore-Package,Include-Resource</_removeheaders> </instructions> {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)