Repository: deltaspike
Updated Branches:
  refs/heads/master 73cb1ca7a -> be87972d5


DELTASPIKE-1316 skip Object.class methods

those are not covered by the unproxyable types rule.


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

Branch: refs/heads/master
Commit: fa8bff819197ce790ca365da97449d192ad7977c
Parents: 73cb1ca
Author: Mark Struberg <strub...@apache.org>
Authored: Tue Mar 6 16:49:16 2018 +0100
Committer: Mark Struberg <strub...@apache.org>
Committed: Tue Mar 6 16:49:16 2018 +0100

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


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/fa8bff81/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
----------------------------------------------------------------------
diff --git 
a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
 
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
index c2eac8f..9347900 100644
--- 
a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
+++ 
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
@@ -157,6 +157,11 @@ public abstract class ClassUtils
         // classes which have non-static, final methods with public, protected 
or default visibility,
         for (Method method : clazz.getMethods())
         {
+            if (method.getDeclaringClass() == Object.class)
+            {
+                continue;
+            }
+
             if (!method.isBridge() && !method.isSynthetic() && 
!Modifier.isStatic(method.getModifiers()) &&
                 !Modifier.isPrivate(method.getModifiers()) && 
Modifier.isFinal(method.getModifiers()))
             {

Reply via email to