]> source.dussan.org Git - javassist.git/commitdiff
fixed JIRA JASSIST-89
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 16 Jul 2009 08:33:39 +0000 (08:33 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 16 Jul 2009 08:33:39 +0000 (08:33 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@490 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/CtNewClass.java

index 2229d4171bfd94e0b80acf3fdce419cfda9b4327..ba48e93f24884080cf6bfe0ba860390e5b72a1de 100644 (file)
@@ -103,7 +103,7 @@ class CtNewClass extends CtClassType {
 
         if (n < 1)
             throw new CannotCompileException(
-                        "no public constructor in " + superclazz.getName());
+                        "no inheritable constructor in " + superclazz.getName());
 
     }
 
@@ -117,7 +117,7 @@ class CtNewClass extends CtClassType {
             if (pname == null)
                 return pname2 == null;
             else
-                pname.equals(pname2);
+                return pname.equals(pname2);
         }
 
         return true;