openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r753348 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Date Fri, 13 Mar 2009 19:07:32 GMT
Author: struberg
Date: Fri Mar 13 19:07:25 2009
New Revision: 753348

URL: http://svn.apache.org/viewvc?rev=753348&view=rev
Log:
OWB-84 only add Serializable interface if it isn't already defined in the class file

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java?rev=753348&r1=753347&r2=753348&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Fri Mar 13 19:07:25 2009
@@ -59,8 +59,10 @@
                 }
 
             }
-
-            interfaceList.add(Serializable.class);
+            if (!interfaceList.contains(Serializable.class))
+            {
+                interfaceList.add(Serializable.class);
+            }
 
             Class<?>[] interfaceArray = new Class<?>[interfaceList.size()];
             interfaceArray = interfaceList.toArray(interfaceArray);



Mime
View raw message