Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 62336 invoked from network); 12 Aug 2010 15:32:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 15:32:14 -0000 Received: (qmail 33722 invoked by uid 500); 12 Aug 2010 15:32:14 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 33691 invoked by uid 500); 12 Aug 2010 15:32:13 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 33683 invoked by uid 500); 12 Aug 2010 15:32:13 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 33678 invoked by uid 99); 12 Aug 2010 15:32:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 15:32:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 15:32:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7CFVl1M028327 for ; Thu, 12 Aug 2010 15:31:49 GMT Message-ID: <25129049.6491281627107322.JavaMail.jira@thor> Date: Thu, 12 Aug 2010 11:31:47 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-3052) Simple binary operators - Prefer numeric types over String MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org Simple binary operators - Prefer numeric types over String ---------------------------------------------------------- Key: CAMEL-3052 URL: https://issues.apache.org/activemq/browse/CAMEL-3052 Project: Apache Camel Issue Type: Improvement Components: camel-core Affects Versions: 2.4.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.5.0 If you use Simple for comparison and have {code} simple("${in.header.foo} > 100") {code} Then the type of foo is used first. And if that type is a String, then you compare with "100" and not the numeric value of 100. In those cases we should prefer the numeric type of the right hand side so we do a numeric vs. numeric comparison first. As any thing can be converted to String we should prefer String types last. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.