This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.osgi-mock-1.6.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-osgi-mock.git
commit 3747fc71d23dea29976f9c5d8b96b2436c759cb6 Author: Stefan Seifert <[email protected]> AuthorDate: Fri Oct 2 19:54:01 2015 +0000 SLING-5089 deactivate services in reverse order git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/osgi-mock@1706481 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java b/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java index e6136aa..605fb82 100644 --- a/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java +++ b/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java @@ -295,7 +295,7 @@ class MockBundleContext implements BundleContext { * Deactivates all bundles registered in this mocked bundle context. */ public void shutdown() { - for (MockServiceRegistration serviceRegistration : ImmutableList.copyOf(registeredServices)) { + for (MockServiceRegistration serviceRegistration : ImmutableList.copyOf(registeredServices).reverse()) { try { MockOsgi.deactivate(serviceRegistration.getService(), this, serviceRegistration.getProperties()); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
