aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/MemberResolver.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-10-05 10:18:23 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-10-05 10:18:23 +0000
commit9d096c5cbe1816e97e9bd1bebeb23897ccf9bc65 (patch)
tree668ac08460075fc482cff9a24a154bfdb127083d /src/main/javassist/compiler/MemberResolver.java
parent260b2fd56c800bd0f8328edee1e46dc5ccfde176 (diff)
downloadjavassist-9d096c5cbe1816e97e9bd1bebeb23897ccf9bc65.tar.gz
javassist-9d096c5cbe1816e97e9bd1bebeb23897ccf9bc65.zip
fixed JASSIST-123
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@576 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler/MemberResolver.java')
-rw-r--r--src/main/javassist/compiler/MemberResolver.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/MemberResolver.java b/src/main/javassist/compiler/MemberResolver.java
index ee692c61..fb2aa9b2 100644
--- a/src/main/javassist/compiler/MemberResolver.java
+++ b/src/main/javassist/compiler/MemberResolver.java
@@ -429,6 +429,17 @@ public class MemberResolver implements TokenId {
}
catch (NotFoundException e) {
classPool.recordInvalidClassName(fqName);
+ try {
+ if (pac.endsWith("." + orgName)) {
+ CtClass cc = classPool.get(pac);
+ // if the class is found,
+ classPool.recordInvalidClassName(orgName);
+ return cc;
+ }
+ }
+ catch (NotFoundException e2) {
+ classPool.recordInvalidClassName(pac);
+ }
}
}
}