From c5136a356d2445fa99a43fd64b7bf6fe8394bea2 Mon Sep 17 00:00:00 2001
From: Pete Muir
Date: Wed, 22 Sep 2010 00:49:07 +0100
Subject: [PATCH] WELD-679, require disociate to be called
---
weld/src/main/java/org/jboss/weld/context/BoundContext.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/weld/src/main/java/org/jboss/weld/context/BoundContext.java b/weld/src/main/java/org/jboss/weld/context/BoundContext.java
index ad618819..1783abb2 100644
--- a/weld/src/main/java/org/jboss/weld/context/BoundContext.java
+++ b/weld/src/main/java/org/jboss/weld/context/BoundContext.java
@@ -23,6 +23,11 @@
* may change this behavior.
*
*
+ *
+ * If you call {@link #associate(Object)} you must ensure that you call
+ * {@link #dissociate(Object)} in all cases, otherwise you risk memory leaks.
+ *
+ *
* @author Pete Muir
*
* @param the type of the external instance storage