diff options
author | patriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-12 20:47:29 +0000 |
---|---|---|
committer | patriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-12 20:47:29 +0000 |
commit | 2d7afcd04b007ef3322b132d82f3f32889414232 (patch) | |
tree | 90207eac507949d6a2b7c6523529c1673113787b /src/main/javassist | |
parent | 0cc8b5343f0902ebbec393f93e918ad0193be04b (diff) | |
download | javassist-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.java | 3 |
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) |