[
https://issues.apache.org/jira/browse/FELIX-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950962#comment-15950962
]
Thomas Watson commented on FELIX-5568:
--------------------------------------
As a bundle you do not explicitly list each and every version of an execution
environment you support. Instead the framework is supposed to provide an
osgi.ee capability that has a version list containing all the versions
supported for a specific osgi.ee name. For example, on Java 7 the framework
capability should look something like this for the JavaSE name:
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5,
1.6, 1.7"
That should match the (&(osgi.ee=JavaSE)(version=1.6)) filter. On Java 9
things are a bit more complicated given Java 9 modules. But I suspect the
capability JavaSE to look like this on Java 9 since they changed the version
scheme to remove the 1.x Major version.
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5,
1.6, 1.7, 1.8, 9.0"
Also note that a framework running on Java 8 must provide the following JavaSE
related osgi.ee named capabilities:
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4,
1.5, 1.6, 1.7, 1.8"
osgi.ee; osgi.ee="JavaSE/compact1"; version:List<Version>="1.8"
osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8"
osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8"
A bundle that needs Java 8 and supports compact1 should only have to list the
filter "(&(osgi.ee=JavaSE/compact1)(version=1.8))". It should not have to also
OR a separate filter for JavaSE-1.8 version "(&(osgi.ee=JavaSE)(version=1.8))"
> SCR contains compact3 profile code
> ----------------------------------
>
> Key: FELIX-5568
> URL: https://issues.apache.org/jira/browse/FELIX-5568
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-2.0.8
> Environment: Fedora 25 x64
> Reporter: Ferry Huberts
> Assignee: Carsten Ziegeler
> Fix For: scr-2.1.0
>
>
> {quote}
> $ jdeps -P *.jar |grep compact3
> org.apache.felix.scr-2.0.8.jar ->
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b14.fc25.x86_64/jre/lib/rt.jar
> (compact3)
> -> java.lang.management compact3
> {quote}
> Maybe split off the compact3 part as an optional extension/fragment?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)