diff options
author | Thomas Watson | 2020-09-02 18:24:36 +0000 |
---|---|---|
committer | Thomas Watson | 2020-09-04 13:04:33 +0000 |
commit | 0072515f5bad073515f892bbdab40099ec9c0d3b (patch) | |
tree | f862a0f340e4100b63a52fce78cf968f50da369a /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java | |
parent | 44d6f423dfcda15f79148272053f66b06e244760 (diff) | |
download | rt.equinox.framework-0072515f5bad073515f892bbdab40099ec9c0d3b.tar.gz rt.equinox.framework-0072515f5bad073515f892bbdab40099ec9c0d3b.tar.xz rt.equinox.framework-0072515f5bad073515f892bbdab40099ec9c0d3b.zip |
Bug 566618 - Avoid creating domain during wiring invalidation
There are scenarios where creating a domain will fail, for example if
the bundle file has been deleted. There is no need to create a domain
in the case of invalidating a wiring because we are just trying to clear
the permission cache of the existing domain when invalidating a wiring.
Change-Id: Icb5d2118a267d08192f3ead21991d1955d36d34f
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java index e6e3a6e34..43098b906 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java @@ -271,7 +271,7 @@ public class EquinoxContainerAdaptor extends ModuleContainerAdaptor { for (ModuleRevision revision : module.getRevisions().getModuleRevisions()) { Generation generation = (Generation) revision.getRevisionInfo(); if (generation != null) { - ProtectionDomain domain = generation.getDomain(); + ProtectionDomain domain = generation.getDomain(false); if (domain != null) { ((BundlePermissions) domain.getPermissions()).clearPermissionCache(); } |