From: aclement Date: Mon, 13 Jul 2009 17:35:35 +0000 (+0000) Subject: 283229: serialversionuid field and interfaces X-Git-Tag: PRE_J5~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8dbb6338d7b7314f97e30052f7eca8cf034ace6b;p=aspectj.git 283229: serialversionuid field and interfaces --- diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java index 63d1d4440..4d62dc442 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java @@ -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());