From 9d096c5cbe1816e97e9bd1bebeb23897ccf9bc65 Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 5 Oct 2010 10:18:23 +0000 Subject: [PATCH] fixed JASSIST-123 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@576 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- Readme.html | 2 +- src/main/javassist/compiler/MemberResolver.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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); + } } } } -- 2.39.5