This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.0.x by this push:
     new cd6b4bc9335 CAMEL-20835: camel-core - Multicast/RecipientList use 
LRUCache with configurable cacheSize for internal errorHandler cache to avoid 
OOM. Thanks to Arthur Naseef for reproducer.
cd6b4bc9335 is described below

commit cd6b4bc933505c27f67490be2b5bea95c807cd95
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 17 12:37:16 2024 +0200

    CAMEL-20835: camel-core - Multicast/RecipientList use LRUCache with 
configurable cacheSize for internal errorHandler cache to avoid OOM. Thanks to 
Arthur Naseef for reproducer.
---
 .../java/org/apache/camel/processor/Splitter.java    | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git 
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/Splitter.java
 
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/Splitter.java
index 062b668aa48..eff6eddff0c 100644
--- 
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/Splitter.java
+++ 
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/Splitter.java
@@ -88,14 +88,6 @@ public class Splitter extends MulticastProcessor implements 
AsyncProcessor, Trac
         return "split[" + expression + "]";
     }
 
-    @Override
-    protected void doBuild() throws Exception {
-        super.doBuild();
-        // eager load classes
-        Object dummy = new SplitterIterable();
-        LOG.trace("Loaded {}", dummy.getClass().getName());
-    }
-
     @Override
     protected void doInit() throws Exception {
         super.doInit();
@@ -167,18 +159,6 @@ public class Splitter extends MulticastProcessor 
implements AsyncProcessor, Trac
         private final Route route;
         private final Exchange original;
 
-        private SplitterIterable() {
-            // used for eager classloading
-            value = null;
-            iterator = null;
-            copy = null;
-            route = null;
-            original = null;
-            // for loading classes from iterator
-            Object dummy = iterator();
-            LOG.trace("Loaded {}", dummy.getClass().getName());
-        }
-
         private SplitterIterable(Exchange exchange, Object value) {
             this.original = exchange;
             this.value = value;

Reply via email to