You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/09/18 09:28:23 UTC

[jira] Resolved: (CAMEL-150) Bug in PredicateBuilder

     [ https://issues.apache.org/activemq/browse/CAMEL-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved CAMEL-150.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.0
         Assignee: Guillaume Nodet

Fixed, thx for reporting this!

Sending        src/main/java/org/apache/camel/builder/PredicateBuilder.java
Transmitting file data .
Committed revision 576744.


> Bug in PredicateBuilder
> -----------------------
>
>                 Key: CAMEL-150
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-150
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Nicky Sandhu
>            Assignee: Guillaume Nodet
>             Fix For: 1.2.0
>
>
> PredicateBuilder reads
>    public static <E extends Exchange> Predicate<E> isGreaterThanOrEqualTo(final Expression<E> left,
>                                                                            final Expression<E> right) {
>         return new BinaryPredicateSupport<E>(left, right) {
>             protected boolean matches(E exchange, Object leftValue, Object rightValue) {
>                 return compare(leftValue, rightValue) < 0;
>             }
>             protected String getOperationText() {
>                 return ">=";
>             }
>         };
>     }
> This should be
>  return compare(leftValue, rightValue) >= 0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.