]> source.dussan.org Git - aspectj.git/commitdiff
283229: serialversionuid field and interfaces
authoraclement <aclement>
Mon, 13 Jul 2009 17:35:35 +0000 (17:35 +0000)
committeraclement <aclement>
Mon, 13 Jul 2009 17:35:35 +0000 (17:35 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index 63d1d4440db227be24cfe1ae5723fb9d5084d170..4d62dc4425551eec3575a9fb1a67eb948c53634f 100644 (file)
@@ -285,7 +285,7 @@ public final class LazyClassGen {
                        }
 
                        // Do we need to calculate an SUID and add it?
-                       if (!hasSerialVersionUIDField && world.isAddSerialVerUID()) {
+                       if (!getType().isInterface() && !hasSerialVersionUIDField && world.isAddSerialVerUID()) {
                                calculatedSerialVersionUID = myGen.getSUID();
                                FieldGen fg = new FieldGen(Constants.ACC_PRIVATE | Constants.ACC_FINAL | Constants.ACC_STATIC, BasicType.LONG,
                                                "serialVersionUID", getConstantPool());