From: aclement Date: Wed, 5 Jan 2005 13:14:41 +0000 (+0000) Subject: Binary Weaving Decp: helper methods and bug fix for unnecessary suid warning. X-Git-Tag: Root_AspectJ5_Development~121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38836534d692da64a69bcd741129d4d103e78973;p=aspectj.git Binary Weaving Decp: helper methods and bug fix for unnecessary suid warning. --- diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java index 4e105fb0c..2adf530ca 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java @@ -452,12 +452,17 @@ public final class LazyClassGen { public void addInterface(TypeX typeX, ISourceLocation sourceLocation) { myGen.addInterface(typeX.getName()); - warnOnAddedInterface(typeX.getName(),sourceLocation); + if (!typeX.equals(TypeX.SERIALIZABLE)) + warnOnAddedInterface(typeX.getName(),sourceLocation); } public void setSuperClass(TypeX typeX) { myGen.setSuperclassName(typeX.getName()); } + + public String getSuperClassname() { + return myGen.getSuperclassName(); + } // non-recursive, may be a bug, ha ha. @@ -817,6 +822,10 @@ public final class LazyClassGen { public boolean isInterface() { return myGen.isInterface(); } + + public boolean isAbstract() { + return myGen.isAbstract(); + } public LazyMethodGen getLazyMethodGen(Member m) { return getLazyMethodGen(m.getName(), m.getSignature());