Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DB146616 for ; Wed, 1 Jun 2011 09:46:29 +0000 (UTC) Received: (qmail 7763 invoked by uid 500); 1 Jun 2011 09:46:29 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7697 invoked by uid 500); 1 Jun 2011 09:46:29 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 7689 invoked by uid 99); 1 Jun 2011 09:46:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 09:46:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 09:46:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D6918ED12A for ; Wed, 1 Jun 2011 09:45:47 +0000 (UTC) Date: Wed, 1 Jun 2011 09:45:47 +0000 (UTC) From: "Michal Kutyla (JIRA)" To: issues@cxf.apache.org Message-ID: <1842422576.59048.1306921547875.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (DOSGI-24) org.apache.cxf.dosgi.dsw.ClassUtils#getInterfaceClass() method should search through super class interfaces too 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/DOSGI-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042066#comment-13042066 ] Michal Kutyla edited comment on DOSGI-24 at 6/1/11 9:45 AM: ------------------------------------------------------------ It is not fixed. It will work if service interface is extended by other INTERFACE(so does in example with ArrayList and Collection). It won't work if service interface is implemented by super CLASS. I couldn't find example in JDK so imagine that you have: class A extends B {...} class B implements C {...} interface C {...} Now, when you call Classutils.getInterfaceClass(new A(), "C") it will return null. was (Author: fido): It is not fixed. It will work if service interface is extended by other interface (so does in example with ArrayList and Collection). It won't work if service interface is implemented by super CLASS. I couldn't find example in JDK so imagine that you have: class A extends B {...} class B implements C {...} interface C {...} Now, when you call Classutils.getInterfaceClass(new A(), "C") it will return null. > org.apache.cxf.dosgi.dsw.ClassUtils#getInterfaceClass() method should search through super class interfaces too > --------------------------------------------------------------------------------------------------------------- > > Key: DOSGI-24 > URL: https://issues.apache.org/jira/browse/DOSGI-24 > Project: CXF Distributed OSGi > Issue Type: Bug > Environment: any > Reporter: Sergey Bokovikov > Assignee: David Bosschaert > Priority: Minor > Fix For: 1.2 > > > ServiceHookUtils won't publish OSGi service if service interface implemented by super class. For example, java.util.ArrayList instance can be published as java.util.List service but not as java.util.Collections: > > > > > > > > > > > > > > > > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira