Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7055F175AE for ; Mon, 16 Mar 2015 10:52:51 +0000 (UTC) Received: (qmail 841 invoked by uid 500); 16 Mar 2015 10:52:38 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 808 invoked by uid 500); 16 Mar 2015 10:52:38 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 799 invoked by uid 99); 16 Mar 2015 10:52:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2015 10:52:38 +0000 Date: Mon, 16 Mar 2015 10:52:38 +0000 (UTC) From: "Peter Geletka (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8492) BeanInfo introspection ignores overriden methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363059#comment-14363059 ] Peter Geletka commented on CAMEL-8492: -------------------------------------- I tested it with 2.14.0 - test passes as well > BeanInfo introspection ignores overriden methods > ------------------------------------------------ > > Key: CAMEL-8492 > URL: https://issues.apache.org/jira/browse/CAMEL-8492 > Project: Camel > Issue Type: Bug > Affects Versions: 2.15.0 > Reporter: Peter Geletka > Attachments: beaninfo-issue.zip > > > When BeanInfo introspects class which implements a interface with one method, implemented method is filtered out and no invocation of the method is possible. > Interface > {code} > public interface RequestMessageTranslator { > O translate(I in); > } > {code} > Implementation > {code} > public class RequestMessageTranslatorImpl implements RequestMessageTranslator { > public String translate(String in) { > return null; > } > } > {code} > Then calling the class from route: > {code} > from(ROUTE_ID) > .id(ROUTE_ID) > .bean(requestMessageTranslator) > {code} > ends with: > {code} > Caused by: java.lang.IllegalStateException: No method invocation could be created, no matching method could be found on: RequestMessageTranslator@402fbbaf > at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:165) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)