deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [2/2] deltaspike git commit: DELTASPIKE-823 fixed ProxyUtils
Date Sat, 14 Feb 2015 11:20:05 GMT
DELTASPIKE-823 fixed ProxyUtils

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/5b5be22f
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/5b5be22f
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/5b5be22f

Branch: refs/heads/master
Commit: 5b5be22f0005d6196f3ce96110b49f104c57e47a
Parents: e478f4f
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Sat Feb 14 12:18:05 2015 +0100
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Sat Feb 14 12:18:05 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/deltaspike/core/util/ProxyUtils.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/5b5be22f/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
index abbbe0d..39778a8 100644
--- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
@@ -104,6 +104,11 @@ public abstract class ProxyUtils
             return true;
         }
         
+        if (proxyClass.getSuperclass() != null && !proxyClass.getSuperclass().equals(Object.class))
+        {
+            return false;
+        }
+        
         if (proxyClass.getName().contains("$$"))
         {
             for (Class<?> currentInterface : interfaces)


Mime
View raw message