Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 47101 invoked from network); 21 Aug 2008 10:58:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 10:58:43 -0000 Received: (qmail 32177 invoked by uid 500); 21 Aug 2008 10:58:41 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 32163 invoked by uid 500); 21 Aug 2008 10:58:41 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 32152 invoked by uid 99); 21 Aug 2008 10:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 03:58:41 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 10:57:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91324234C1C1 for ; Thu, 21 Aug 2008 03:57:52 -0700 (PDT) Message-ID: <1733335234.1219316272589.JavaMail.jira@brutus> Date: Thu, 21 Aug 2008 03:57:52 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-840) IntrospectionSupport to support overloaded setter methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org IntrospectionSupport to support overloaded setter methods --------------------------------------------------------- Key: CAMEL-840 URL: https://issues.apache.org/activemq/browse/CAMEL-840 Project: Apache Camel Issue Type: Improvement Components: camel-core Affects Versions: 1.5.0 Reporter: Claus Ibsen If you have overloaded setter methods for a given property Camel can only use the first found. {code} private Expression expression; public void setExpression(Expression expression) { this.expression = expression; } public void setExpression(String fileLanguageExpression) { this.expression = FileLanguage.file(fileLanguageExpression); } {code} isn't supported. As Camel will try to convert the type before finding the 2nd setter method with the correct type. Maybe the solution is to improve the code so it finds the String setter if the input is a string property instead of the Expression object, ie find the setter with a 100% match and use it, if not then fallback to type convertions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.