CAMEL-6691: Fixed seda when using queueSize not comparing correctly.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f4fdeb1a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f4fdeb1a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f4fdeb1a Branch: refs/heads/camel-2.11.x Commit: f4fdeb1aaaa38d068381544388d81bf4325b98ea Parents: bbab828 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Aug 31 12:17:04 2013 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Aug 31 12:53:18 2013 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/camel/component/seda/SedaComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f4fdeb1a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java index 7528fa8..2d1d4d4 100644 --- a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java +++ b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java @@ -71,7 +71,7 @@ public class SedaComponent extends DefaultComponent { if (ref != null) { // if the given size is not provided, we just use the existing queue as is - if (size != null && ref.getSize() != size) { + if (size != null && !size.equals(ref.getSize())) { // there is already a queue, so make sure the size matches throw new IllegalArgumentException("Cannot use existing queue " + key + " as the existing queue size " + (ref.getSize() != null ? ref.getSize() : Integer.MAX_VALUE) + " does not match given queue size " + size);