Community
Participate
Working Groups
Modular JVMs allow JVM distributions to not ship all systempackages that given Java version has as standard API. Thus EE definitions should no longer contain them.
Todor, IIRC you mentioned smth about changes to EE definitions with regards to this bug. Could you please share some more info and/or links?
https://docs.osgi.org/specification/osgi.core/7.0.0/framework.module.html contains some data that starting with Java 9 EE definitions having system.packages is meaningless.
New Gerrit change created: https://git.eclipse.org/r/164177
(In reply to Alexander Kurtakov from comment #1) > Todor, IIRC you mentioned smth about changes to EE definitions with regards > to this bug. Could you please share some more info and/or links? As of OSGi R7 and under Java 9+, the system packages are optional. If you set them the OSGi runtime will have to honor them regardless of the actual set of packages available in the JRE. It is recommended to let the OSGi runtime use reflection on the JPMS modules to discover the system packages by itself. Also as of Java 9+, the requirement: Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=9))" means merely that you want the JRE to support bytecode level 9, not that you require any particular set of system packages. Finally note that under Java 9 the java modules are sill all seen as one system class loader and the bundles are loaded as the always have been. I.e. the "module path" of the JRE is not merged with the class loader model of OSGi. For that you have to wait for OSGi R8...
New Gerrit change created: https://git.eclipse.org/r/164998
New Gerrit change created: https://git.eclipse.org/r/165019
Gerrit change https://git.eclipse.org/r/164177 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=231d917b3d87bb0551e7dc7354ba2dffe754add0
Gerrit change https://git.eclipse.org/r/165019 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=d3b4d201cc73ebcf354f98540fe3fbf317e2092e
I think we're done here. N&N note was added: https://wiki.eclipse.org/Tycho/Release_Notes/2.0#Resolve_system.packages_against_toolchain_when_not_defined_in_profiles_.28Java_9.2B.29