openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bergm...@apache.org
Subject svn commit: r915532 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
Date Tue, 23 Feb 2010 21:46:22 GMT
Author: bergmark
Date: Tue Feb 23 21:46:22 2010
New Revision: 915532

URL: http://svn.apache.org/viewvc?rev=915532&view=rev
Log:
[OWB-298] Remove java.io.Serializable from the list of Decorated types in Decorator Util.
 The init method of WebBeansDecorator already does so.

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java?rev=915532&r1=915531&r2=915532&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
Tue Feb 23 21:46:22 2010
@@ -79,6 +79,11 @@
         Set<Type> decoratorSet = new HashSet<Type>();
         ClassUtil.setInterfaceTypeHierarchy(decoratorSet, decoratorClazz);
         
+        //Per section 8.1 do no consider Serializable a decorated type
+        if(decoratorSet.contains(java.io.Serializable.class)){
+            decoratorSet.remove(java.io.Serializable.class);
+        }
+        
         //No-Decorates found, check from super class
         if(!checkInternalDecoratorConditions(decoratorClazz, decoratorSet))
         {



Mime
View raw message