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 40329102B0 for ; Thu, 13 Feb 2014 13:01:24 +0000 (UTC) Received: (qmail 97388 invoked by uid 500); 13 Feb 2014 13:01:23 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 97255 invoked by uid 500); 13 Feb 2014 13:01:22 -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 97230 invoked by uid 99); 13 Feb 2014 13:01:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 13:01:21 +0000 Date: Thu, 13 Feb 2014 13:01:21 +0000 (UTC) From: "Edgar Wentzlaff (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-5562) value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Edgar Wentzlaff created CXF-5562: ------------------------------------ Summary: value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored Key: CXF-5562 URL: https://issues.apache.org/jira/browse/CXF-5562 Project: CXF Issue Type: Bug Components: JAX-RS Affects Versions: 2.7.10 Environment: Oracle JDK 1.7.51 Reporter: Edgar Wentzlaff Value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored by the JAXRS-Client. TestCase: {code:title=cxf-2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java} //... @Test public void testProxyBeanParam() throws Exception { BookStore store = JAXRSClientFactory.create("http://localhost:" + PORT, BookStore.class); BookStore.BookBean bean = new BookStore.BookBean(); bean.setId(100L); bean.setId2(23L); Book book = store.getBeanParamBook(bean); assertEquals(123L, book.getId()); } //... {code} Modified BookStore.BookBean inside Test Example {code:title=cxf-2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java} //... public static class BookBean { private long id; private long id2; private long id3; public long getId() { return id; } //@PathParam("id") @PathParam("ID") public void setId(long id) { this.id = id; } public long getId2() { return id2; } //@QueryParam("id2") @QueryParam("id_2") public void setId2(long id2) { this.id2 = id2; } @Context public void setUriInfo(UriInfo ui) { String id3Value = ui.getQueryParameters().getFirst("id3"); if (id3Value != null) { this.id3 = Long.valueOf(id3Value); } } public long getId3() { return id3; } } //... {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)