From dev-return-2580-apmail-juneau-dev-archive=juneau.apache.org@juneau.apache.org Fri Sep 6 00:03:02 2019 Return-Path: X-Original-To: apmail-juneau-dev-archive@minotaur.apache.org Delivered-To: apmail-juneau-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id AFEC9191FB for ; Fri, 6 Sep 2019 00:03:02 +0000 (UTC) Received: (qmail 86137 invoked by uid 500); 6 Sep 2019 09:38:19 -0000 Delivered-To: apmail-juneau-dev-archive@juneau.apache.org Received: (qmail 86083 invoked by uid 500); 6 Sep 2019 09:38:19 -0000 Mailing-List: contact dev-help@juneau.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@juneau.apache.org Delivered-To: mailing list dev@juneau.apache.org Received: (qmail 86008 invoked by uid 99); 6 Sep 2019 09:38:19 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2019 09:38:19 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9BE02E3127 for ; Fri, 6 Sep 2019 00:03:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 43A807808D9 for ; Fri, 6 Sep 2019 00:03:00 +0000 (UTC) Date: Fri, 6 Sep 2019 00:03:00 +0000 (UTC) From: "James Bognar (Jira)" To: dev@juneau.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (JUNEAU-136) Juneau cannot reflect parameterized types on Spring bean methods. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JUNEAU-136?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] James Bognar closed JUNEAU-136. ------------------------------- Resolution: Fixed > Juneau cannot reflect parameterized types on Spring bean methods. > ----------------------------------------------------------------- > > Key: JUNEAU-136 > URL: https://issues.apache.org/jira/browse/JUNEAU-136 > Project: Juneau > Issue Type: Task > Components: Code > Affects Versions: 8.1.0 > Reporter: James Bognar > Assignee: James Bognar > Priority: Major > Fix For: 8.1.1 > > > Juneau is not able to infer the MyBean type in the following annotated me= thod of a Spring bean:=C2=A0 > @RestMethod > public void doFoo(@Body List beans) \{...} > This is due to Spring using CGLIB with recompiles classes at runtime and = replaces them with proxies that do not support parameterized types (it's an= unsupported library from 2007).=C2=A0=C2=A0 > I found that CGLIB proxies can be detected by checking for "$$EnhancerByS= pringCGLIB$$" in the class name and then finding the "getTargetClass" on th= e resource object to get the underlying proxy class. -- This message was sent by Atlassian Jira (v8.3.2#803003)