From: chiba Date: Tue, 5 Oct 2010 10:18:23 +0000 (+0000) Subject: fixed JASSIST-123 X-Git-Tag: rel_3_17_1_ga~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d096c5cbe1816e97e9bd1bebeb23897ccf9bc65;p=javassist.git fixed JASSIST-123 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@576 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/Readme.html b/Readme.html index 8c7d0039..903a850a 100644 --- a/Readme.html +++ b/Readme.html @@ -284,7 +284,7 @@ see javassist.Dump.

-version 3.14

-version 3.13 on July 19, 2010 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); + } } } }