From 8dbb6338d7b7314f97e30052f7eca8cf034ace6b Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 13 Jul 2009 17:35:35 +0000 Subject: [PATCH] 283229: serialversionuid field and interfaces --- weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5