aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist
diff options
context:
space:
mode:
authorpatriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-12 20:47:29 +0000
committerpatriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-12 20:47:29 +0000
commit2d7afcd04b007ef3322b132d82f3f32889414232 (patch)
tree90207eac507949d6a2b7c6523529c1673113787b /src/main/javassist
parent0cc8b5343f0902ebbec393f93e918ad0193be04b (diff)
downloadjavassist-2d7afcd04b007ef3322b132d82f3f32889414232.tar.gz
javassist-2d7afcd04b007ef3322b132d82f3f32889414232.zip
get0 should look in cached classes first as code extending ClassPool behavior
may use different mechanism than parent/child. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@83 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist')
-rw-r--r--src/main/javassist/ClassPool.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index 26468b43..137ad3a9 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -660,13 +660,14 @@ public class ClassPool extends AbsClassPool {
throws NotFoundException
{
CtClass clazz;
+ clazz = getCached(classname);
+ if (clazz != null) return clazz;
if (parent != null) {
clazz = parent.get0(classname);
if (clazz != null)
return clazz;
}
- clazz = getCached(classname);
if (clazz == null) {
clazz = get1(classname);
if (clazz != null)