Community
Participate
Working Groups
org.osgi.test.cases.prefs org.osgi.test.cases.prefs.junit.PrefsControl testRemovedNode(org.osgi.test.cases.prefs.junit.PrefsControl) junit.framework.AssertionFailedError: removed at junit.framework.Assert.fail(Assert.java:47) at org.osgi.test.cases.prefs.junit.PrefsControl.runRemovedTests(PrefsControl.java:143) at org.osgi.test.cases.prefs.junit.PrefsControl.testRemovedNode(PrefsControl.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at aQute.junit.Activator.test(Activator.java:200) at aQute.junit.Activator.run(Activator.java:51) testRemovedAncestor(org.osgi.test.cases.prefs.junit.PrefsControl) junit.framework.AssertionFailedError: removed at junit.framework.Assert.fail(Assert.java:47) at org.osgi.test.cases.prefs.junit.PrefsControl.runRemovedTests(PrefsControl.java:143) at org.osgi.test.cases.prefs.junit.PrefsControl.testRemovedAncestor(PrefsControl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at aQute.junit.Activator.test(Activator.java:200) at aQute.junit.Activator.run(Activator.java:51)
https://www.osgi.org/members/gitweb/build.git/blob/refs/heads/core:/org.osgi.test.cases.prefs/src/org/osgi/test/cases/prefs/junit/PrefsControl.java line 143 is the failure point in both cases
Created attachment 197440 [details] patch Definite bug. Not sure how we didn't catch this before! Fix is to check if the node has been removed before preforming the operation.
Marking as 3.8 but let me know if we need to release this sooner or in a maintenance branch.
(In reply to comment #2) > Created attachment 197440 [details] > patch Passes the CT with this patch.
Seems like a simple fix to include in 3.7.1. I think it would be good since at some point we may want to send as many of our bundles through the OSGi certification process as possible.
Created attachment 197542 [details] patch Patch including tests and manifest version number updates.
Released to HEAD.