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/483dafdb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/483dafdb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/483dafdb

Branch: refs/heads/camel-2.15.x
Commit: 483dafdbc811b569421a19f800d58cefaddff61e
Parents: e110555
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:11 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/483dafdb/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