From: chiba Date: Thu, 16 Jul 2009 08:33:39 +0000 (+0000) Subject: fixed JIRA JASSIST-89 X-Git-Tag: rel_3_17_1_ga~158 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0edc786cdcfc4d18f03ea262368ff61aee468d3c;p=javassist.git fixed JIRA JASSIST-89 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@490 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/CtNewClass.java b/src/main/javassist/CtNewClass.java index 2229d417..ba48e93f 100644 --- a/src/main/javassist/CtNewClass.java +++ b/src/main/javassist/CtNewClass.java @@ -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;