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 9FAA4108B5 for ; Mon, 30 Sep 2013 15:32:34 +0000 (UTC) Received: (qmail 72386 invoked by uid 500); 30 Sep 2013 15:32:31 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 72312 invoked by uid 500); 30 Sep 2013 15:32:28 -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 72098 invoked by uid 99); 30 Sep 2013 15:32:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 15:32:25 +0000 Date: Mon, 30 Sep 2013 15:32:25 +0000 (UTC) From: "James Carman (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6783) getFeatures() method of CxfEndpoint only accept AbstractFeature but Feature 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-6783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781935#comment-13781935 ] James Carman commented on CAMEL-6783: ------------------------------------- It's okay to take List doesn't work well at all, because you can't add stuff to it. Consider the following case: {code:java} List list = ...; list.add("Hello"); {code} You can't do it, because "list" is a list of some type of things that extend Serializable. You don't *know* that the type is String, you just know it's some type extending from Serializable. > getFeatures() method of CxfEndpoint only accept AbstractFeature but Feature > --------------------------------------------------------------------------- > > Key: CAMEL-6783 > URL: https://issues.apache.org/jira/browse/CAMEL-6783 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.12.0 > Reporter: liugang > Attachments: CAMEL-6783.patch > > > the *getFeatures()* method of *CxfEndpoint* only accept an instance of *AbstractFeature*, but the original *ClientFactoryBean* accept *Feature* instance. -- This message was sent by Atlassian JIRA (v6.1#6144)