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/7204078a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7204078a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7204078a Branch: refs/heads/master Commit: 7204078a56ace4205c380ee019add3c4a9c2f30d Parents: 05d9afb 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:24:28 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/7204078a/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 94623f8..74e6278 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 @@ -89,7 +89,7 @@ public class SedaComponent extends UriEndpointComponent { 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);