diff options
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java index 8e1102f6e..a5797dc98 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java @@ -702,7 +702,12 @@ public class BundleContextImpl implements BundleContext, EventDispatcher<Object, * method failed */ protected void start() throws BundleException { + long start = 0; try { + if (debug.DEBUG_BUNDLE_TIME) { + start = System.currentTimeMillis(); + Debug.println("Finding activator for " + bundle); //$NON-NLS-1$ + } activator = loadBundleActivator(); } catch (Exception e) { if (e instanceof RuntimeException) { @@ -712,9 +717,7 @@ public class BundleContextImpl implements BundleContext, EventDispatcher<Object, } if (activator != null) { - long start = 0; if (debug.DEBUG_BUNDLE_TIME) { - start = System.currentTimeMillis(); Debug.println("Starting " + bundle); //$NON-NLS-1$ } try { |