aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util/proxy
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-10-29 23:33:15 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-10-29 23:33:15 +0000
commit31d13951317303d8066f6cf75a84de96db9274d8 (patch)
tree436e21a69d264812b51ac9dd94f9eef65a05ae3b /src/main/javassist/util/proxy
parent9a5e5219c1812a2e254021fc0f7fc9264814d532 (diff)
downloadjavassist-31d13951317303d8066f6cf75a84de96db9274d8.tar.gz
javassist-31d13951317303d8066f6cf75a84de96db9274d8.zip
StackMapTable support (not complete)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@325 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/util/proxy')
-rw-r--r--src/main/javassist/util/proxy/ProxyFactory.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java
index e3d6b65e..fe1ce0f8 100644
--- a/src/main/javassist/util/proxy/ProxyFactory.java
+++ b/src/main/javassist/util/proxy/ProxyFactory.java
@@ -209,7 +209,7 @@ public class ProxyFactory {
/**
* A provider used by <code>createClass()</code> for obtaining
* a class loader.
- * <code>get()</code> on this <code>ClassLoaderGetter</code> object
+ * <code>get()</code> on this <code>ClassLoaderProvider</code> object
* is called to obtain a class loader.
*
* <p>The value of this field can be updated for changing the default
@@ -238,7 +238,6 @@ public class ProxyFactory {
}
protected ClassLoader getClassLoader0() {
- // return Thread.currentThread().getContextClassLoader();
ClassLoader loader = null;
if (superClass != null && !superClass.getName().equals("java.lang.Object"))
loader = superClass.getClassLoader();
@@ -248,8 +247,11 @@ public class ProxyFactory {
if (loader == null) {
loader = getClass().getClassLoader();
// In case javassist is in the endorsed dir
- if (loader == null)
- loader = ClassLoader.getSystemClassLoader();
+ if (loader == null) {
+ loader = Thread.currentThread().getContextClassLoader();
+ if (loader == null)
+ loader = ClassLoader.getSystemClassLoader();
+ }
}
return loader;