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 BC188DC0F for ; Mon, 4 Mar 2013 14:51:16 +0000 (UTC) Received: (qmail 94800 invoked by uid 500); 4 Mar 2013 14:51:16 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 94671 invoked by uid 500); 4 Mar 2013 14:51:16 -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 94604 invoked by uid 99); 4 Mar 2013 14:51:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2013 14:51:15 +0000 Date: Mon, 4 Mar 2013 14:51:15 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4849) WebClient needs to support JAX-RS 2.0 GenericType 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-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592247#comment-13592247 ] Sergey Beryozkin commented on CXF-4849: --------------------------------------- But this will not work if we have {code:java} public class Root { @GET public MyResponse getA() {} @GET public MyResponse getB() {} } {code} getA gets invoked and MyResponse context becomes MyResponse.class + A.class, queued by MyResponse.class, and next getB() fails. with extraClass property we can simply add both A & B to the context; > WebClient needs to support JAX-RS 2.0 GenericType > ------------------------------------------------- > > Key: CXF-4849 > URL: https://issues.apache.org/jira/browse/CXF-4849 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Reporter: Sergey Beryozkin > Assignee: Sergey Beryozkin > Fix For: 2.8.0, 2.7.4 > > Attachments: cxf-4849.patch > > > This is useful for processing generic responses, example, > {code:java} > GenericType> genericResponseType = new GenericType>() {}; > List books = webClient.get(genericResponseType); > // or > List books = webClient.post(someObject, genericResponseType); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira