openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1442734 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java
Date Tue, 05 Feb 2013 20:42:36 GMT
Author: struberg
Date: Tue Feb  5 20:42:36 2013
New Revision: 1442734

URL: http://svn.apache.org/viewvc?rev=1442734&view=rev
Log:
OWB-344 re-enable warning for non-portable behaviour if decorator is @Alternative

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java?rev=1442734&r1=1442733&r2=1442734&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/creation/DecoratorBeanBuilder.java
Tue Feb  5 20:42:36 2013
@@ -22,6 +22,7 @@ import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.decorator.Delegate;
 import javax.enterprise.context.Dependent;
+import javax.enterprise.inject.Alternative;
 import javax.enterprise.inject.Produces;
 import javax.enterprise.inject.spi.AnnotatedConstructor;
 import javax.enterprise.inject.spi.AnnotatedMethod;
@@ -131,15 +132,13 @@ public class DecoratorBeanBuilder<T>
             }
         }
 
-/*X TODO enable again
-        if(isAlternative())
+        if (annotatedType.isAnnotationPresent(Alternative.class))
         {
             if(logger.isLoggable(Level.WARNING))
             {
-                logger.log(Level.WARNING, OWBLogConst.WARN_0005_3, getBeanType().getName());
+                logger.log(Level.WARNING, OWBLogConst.WARN_0005_3, annotatedType.getJavaClass().getName());
             }
         }
-*/
 
 
         if (logger.isLoggable(Level.FINE))



Mime
View raw message