You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2010/02/25 11:14:04 UTC
svn commit: r916216 -
/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
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;
}