Do not cache proxy classes

This commit is contained in:
Andy Clement
2013-05-03 15:50:18 -07:00
parent db23e660cd
commit 70de43fa98

View File

@@ -338,7 +338,10 @@ public class MethodInvokerRewriter {
// checkNotTheSame(bs, bytes);
if (canCache && classAdaptor.rewroteReflection && !classAdaptor.rewroteOtherKindOfOperation) {
if (GlobalConfiguration.isCaching) {
cacheOnDisk(classAdaptor.slashedclassname, bytes, bs);
// Do not cache generated proxy classes
if (!classAdaptor.slashedclassname.startsWith("com/sun/proxy/$Proxy")) {
cacheOnDisk(classAdaptor.slashedclassname, bytes, bs);
}
}
}
return bs;