openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1132497 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java
Date Sun, 05 Jun 2011 21:49:27 GMT
Author: djencks
Date: Sun Jun  5 21:49:26 2011
New Revision: 1132497

URL: http://svn.apache.org/viewvc?rev=1132497&view=rev
Log:
OWB-579 More generally ignore synthetic fields, methods, and constructors

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java?rev=1132497&r1=1132496&r2=1132497&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AnnotatedTypeImpl.java
Sun Jun  5 21:49:26 2011
@@ -79,20 +79,29 @@ class AnnotatedTypeImpl<X> extends Abstr
             Constructor<?>[] decCtxs = getWebBeansContext().getSecurityService().doPrivilegedGetDeclaredConstructors(annotatedClass);
             for(Field f : decFields)
             {
-                AnnotatedField<X> af = new AnnotatedFieldImpl<X>(getWebBeansContext(),
f, this);
-                fields.add(af);
+                if (!f.isSynthetic())
+                {
+                    AnnotatedField<X> af = new AnnotatedFieldImpl<X>(getWebBeansContext(),
f, this);
+                    fields.add(af);
+                }
             }
 
             for(Method m : decMethods)
             {
-                AnnotatedMethod<X> am = new AnnotatedMethodImpl<X>(getWebBeansContext(),
m,this);
-                methods.add(am);
+                if (!m.isSynthetic() && !m.isBridge())
+                {
+                    AnnotatedMethod<X> am = new AnnotatedMethodImpl<X>(getWebBeansContext(),
m,this);
+                    methods.add(am);
+                }
             }
 
             for(Constructor<?> ct : decCtxs)
             {
-                AnnotatedConstructor<X> ac = new AnnotatedConstructorImpl<X>(getWebBeansContext(),
(Constructor<X>) ct,this);
-                constructors.add(ac);
+                if (!ct.isSynthetic())
+                {
+                    AnnotatedConstructor<X> ac = new AnnotatedConstructorImpl<X>(getWebBeansContext(),
(Constructor<X>) ct,this);
+                    constructors.add(ac);
+                }
             }
         }
     }



Mime
View raw message