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 B9EB518A47 for ; Tue, 21 Jul 2015 12:19:14 +0000 (UTC) Received: (qmail 24507 invoked by uid 500); 21 Jul 2015 12:19:05 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 24438 invoked by uid 500); 21 Jul 2015 12:19:05 -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 24127 invoked by uid 99); 21 Jul 2015 12:19:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2015 12:19:05 +0000 Date: Tue, 21 Jul 2015 12:19:05 +0000 (UTC) From: "Vladimir Kulev (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6450) Bad handling of JAX-RS generic interfaces 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/CXF-6450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14635022#comment-14635022 ] Vladimir Kulev commented on CXF-6450: ------------------------------------- It's not that sophisticated, really. For instance with Spring Data there is {{CrudRepository}}, which naturally leads you to a situation where this bug occurs. The patch solves the particular problem and it should not cause any regressions (at least according to unit tests). Is there a chance to get it merged? > Bad handling of JAX-RS generic interfaces > ----------------------------------------- > > Key: CXF-6450 > URL: https://issues.apache.org/jira/browse/CXF-6450 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.0 > Reporter: Vladimir Kulev > Attachments: InjectionUtils.patch > > > Here is a simple example of the code which does *not* work as intended: > {code:java} > interface GenericInterface { > @GET > List list(); > } > interface ServiceInterface extends GenericInterface {} > public static class TestService implements ServiceInterface { > @Override > public List list() { > return new ArrayList<>(); > } > } > {code} > I have found that the shape of {{InjectionUtils}} is pretty bad, so please accept this patch slightly improving the situation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)