FELIX-1666 have to explicitly box a long value
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@824060 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/Activator.java b/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
index 54d1b13..5f60315 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
@@ -222,7 +222,7 @@
// FELIX-1666 method is called for the LAZY_ACTIVATION event and
// the started event. Both events cause this method to be called;
// so we have to make sure to not load components twice
- if ( m_componentBundles.containsKey( bundle.getBundleId() ) )
+ if ( m_componentBundles.containsKey( new Long( bundle.getBundleId() ) ) )
{
log( LogService.LOG_DEBUG, m_context.getBundle(), "Components for bundle " + bundle.getSymbolicName()
+ "/" + bundle.getBundleId() + " already loaded. Nothing to do", null );