CAMEL-9143: Fixed JMX leak when using ServicePoolAware producers. Thanks to Bob 
Browning for the test case.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f685c997
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f685c997
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f685c997

Branch: refs/heads/camel-2.14.x
Commit: f685c9977667e3d318a8112756b8ee2f0addd42d
Parents: 3041cc6
Author: Claus Ibsen <davscl...@apache.org>
Authored: Fri Sep 18 09:03:49 2015 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Fri Sep 18 09:04:21 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f685c997/camel-core/src/test/java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/test/java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java
 
b/camel-core/src/test/java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java
index 9b3d947..96afc2d 100644
--- 
a/camel-core/src/test/java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java
+++ 
b/camel-core/src/test/java/org/apache/camel/issues/ServicePoolAwareLeakyTest.java
@@ -125,7 +125,7 @@ public class ServicePoolAwareLeakyTest extends 
ContextTestSupport {
     public void testForMemoryLeak() throws Exception {
         registerLeakyComponent();
 
-        final Map<String, AtomicLong> references = new HashMap<>();
+        final Map<String, AtomicLong> references = new HashMap<String, 
AtomicLong>();
 
         // track LeakySieveProducer lifecycle
         context.addLifecycleStrategy(new LifecycleStrategySupport() {

Reply via email to