openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r916216 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Date Thu, 25 Feb 2010 10:14:04 GMT
Author: struberg
Date: Thu Feb 25 10:14:04 2010
New Revision: 916216

URL: http://svn.apache.org/viewvc?rev=916216&view=rev
Log:
OWB-303 disable broken cache of Javassist ProxyFactory

This has actually no effect on OWB since we already cache generated proxyClasses
ourselfs. This will simply disable the javassist internal cache which got filled
but not used anyway.

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

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java?rev=916216&r1=916215&r2=916216&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Thu Feb 25 10:14:04 2010
@@ -180,6 +180,11 @@
         fact.setInterfaces(interfaceArray);
         fact.setSuperclass(superClass);
 
+        // turn off caching since this is utterly broken
+        // this is a static field, but we do not know who else
+        // might turn it on again ...
+        ProxyFactory.useCache = false;
+        
         return fact;
         
     }



Mime
View raw message