]> source.dussan.org Git - aspectj.git/commitdiff
Binary Weaving Decp: helper methods and bug fix for unnecessary suid warning.
authoraclement <aclement>
Wed, 5 Jan 2005 13:14:41 +0000 (13:14 +0000)
committeraclement <aclement>
Wed, 5 Jan 2005 13:14:41 +0000 (13:14 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index 4e105fb0cf82105a1cd7cfa45c8efdbae061705f..2adf530ca9490725abe40ed846634898fbc55b0a 100644 (file)
@@ -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());