Return-Path: X-Original-To: apmail-olingo-commits-archive@minotaur.apache.org Delivered-To: apmail-olingo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9096111B2 for ; Mon, 1 Sep 2014 06:34:33 +0000 (UTC) Received: (qmail 82429 invoked by uid 500); 1 Sep 2014 06:34:33 -0000 Delivered-To: apmail-olingo-commits-archive@olingo.apache.org Received: (qmail 82377 invoked by uid 500); 1 Sep 2014 06:34:33 -0000 Mailing-List: contact commits-help@olingo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@olingo.apache.org Delivered-To: mailing list commits@olingo.apache.org Received: (qmail 82361 invoked by uid 99); 1 Sep 2014 06:34:33 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2014 06:34:33 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7AFF08C2B15; Mon, 1 Sep 2014 06:34:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mibo@apache.org To: commits@olingo.apache.org Date: Mon, 01 Sep 2014 06:34:33 -0000 Message-Id: <9232e64c52ff45d1926cb1c5b200822f@git.apache.org> In-Reply-To: <454e3f59dd5a4be4965677208f1f4e35@git.apache.org> References: <454e3f59dd5a4be4965677208f1f4e35@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/7] git commit: [OLINGO-403] fixed [OLINGO-403] fixed Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/58619c96 Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/58619c96 Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/58619c96 Branch: refs/heads/OLINGO-406 Commit: 58619c966898c346018d2a4449e794b12df158eb Parents: 853bad6 Author: fmartelli Authored: Mon Aug 18 15:04:55 2014 +0200 Committer: fmartelli Committed: Mon Aug 18 15:04:55 2014 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/58619c96/ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java ---------------------------------------------------------------------- diff --git a/ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java b/ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java index 8d5c08c..d22eb28 100644 --- a/ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java +++ b/ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/utils/ClassUtils.java @@ -32,6 +32,7 @@ import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Proxy; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.util.HashSet; @@ -49,6 +50,10 @@ public final class ClassUtils { } public static Type[] extractGenericType(final Class paramType, final Class... references) { + if (Proxy.class.isAssignableFrom(paramType)) { + return extractGenericType(Class.class.cast(paramType.getGenericInterfaces()[0]), references); + } + if (paramType.getGenericInterfaces().length > 0) { if (references == null || references.length == 0) { return ((ParameterizedType) paramType.getGenericInterfaces()[0]).getActualTypeArguments();