openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r742090 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Date Sun, 08 Feb 2009 13:18:57 GMT
Author: gerdogdu
Date: Sun Feb  8 13:18:57 2009
New Revision: 742090

URL: http://svn.apache.org/viewvc?rev=742090&view=rev
Log:
Update @Obstains check field method.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=742090&r1=742089&r2=742090&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Sun Feb  8 13:18:57 2009
@@ -1420,7 +1420,8 @@
                 }                
                 else
                 {
-                    if(ClassUtil.isFirstParametricTypeArgGeneric(pt))
+                    
+                    if(!ClassUtil.checkParametrizedType(pt))
                     {
                         throw new DefinitionException("@Obtains field with name : " + candidateField.getName()
+ " " +
                                 "in bean class : " + clazz.getName() + " must not have TypeVariable
or WildCard generic type argument");                        



Mime
View raw message