A previous change to help garbage collection was causing an NPE. It is
unclear to me that the "fix" is actually necessary, so I am commenting
it out now until we can investigate it further.
git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@468023 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index 94de0e3..95b77ec 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -3152,6 +3152,13 @@
// This physically removes the bundle from memory
// as well as the bundle cache.
garbageCollectBundle(m_bundle);
+// TODO: FRAMEWORK - There is some indication that there is a memory leak
+// if we do not null the BundleInfo here. We should verify
+// that this is true, because if we null here then we have
+// check for nulls when we are releasing bundle locks, which
+// maybe cascading unnecessary ugliness. For now, I will
+// leave this commented out until we can investigate further.
+// m_bundle.setInfo(null);
m_bundle = null;
}
else