]> source.dussan.org Git - javassist.git/commitdiff
fixed JASSIST-123
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 5 Oct 2010 10:18:23 +0000 (10:18 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 5 Oct 2010 10:18:23 +0000 (10:18 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@576 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

Readme.html
src/main/javassist/compiler/MemberResolver.java

index 8c7d0039d8f3b2296bacce3f3adad938047ece4b..903a850a2f61b6a6e46420ddaa977f59befbdc5f 100644 (file)
@@ -284,7 +284,7 @@ see javassist.Dump.
 <p>-version 3.14
 
 <ul>
-       <li>JIRA JASSIST-128, 129, 130, 131, 132.
+       <li>JIRA JASSIST-121, 123, 128, 129, 130, 131, 132.
 </ul>
 
 <p>-version 3.13 on July 19, 2010
index ee692c61d4d828ee11b9589d39d9cc2c526b7cb2..fb2aa9b2c74e8b4a8f1c1b5d895342a2be7be0bd 100644 (file)
@@ -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);
+                    }
                 }
             }
         }