]> source.dussan.org Git - aspectj.git/commitdiff
test and fix for 168063 - incorrectly tagging a field as transient
authoraclement <aclement>
Wed, 10 Jan 2007 16:10:52 +0000 (16:10 +0000)
committeraclement <aclement>
Wed, 10 Jan 2007 16:10:52 +0000 (16:10 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index af7a4afeea5b3bb6491533d7045938a898c79337..6f6743f4716beeed95d73f52e9e3bd8b9dd4b561 100644 (file)
@@ -1237,7 +1237,8 @@ public final class LazyClassGen {
        }
        
        private void makeSyntheticAndTransientIfNeeded(Field field) {
-               if (field.getName().startsWith(NameMangler.PREFIX)) {
+               if (field.getName().startsWith(NameMangler.PREFIX) &&
+                       !field.getName().startsWith("ajc$interField$")) {
                        // it's an aj added field
                        // first do transient
                        if (!field.isStatic()) {