Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

BundleWiringTests.testOSGiEE() fails on Java 9 or higher #2990

Open
bjhargrave opened this issue Sep 13, 2019 · 2 comments
Open

BundleWiringTests.testOSGiEE() fails on Java 9 or higher #2990

bjhargrave opened this issue Sep 13, 2019 · 2 comments
Assignees

Comments

@bjhargrave
Copy link
Member

Original bug ID: BZ#3122
From: @tjwatson
Reported version: R7

@bjhargrave
Copy link
Member Author

Comment author: @tjwatson

org.osgi.test.cases.framework.junit.wiring.BundleWiringTests.testOSGiEE()

The following fails on Java 9+

	// fifth bundle requires JavaSE [1.3, 2.0)
	Bundle tb10v140 = install("resolver.tb10.v140.jar");
	assertTrue(frameworkWiring.resolveBundles(Arrays.asList(new Bundle[] {tb10v140})));

The reason is because Java 9 gets a version of 9.0 which does not match the filter being used by resolver.tb10.v140.jar for the osgi.ee namespace: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version>=1.3)(!(version>=2.0)))"

@bjhargrave
Copy link
Member Author

Comment author: @bjhargrave

CPEG call: Anjum, can you please fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants