diff options
author | Andy Clement <aclement@vmware.com> | 2012-02-29 14:59:00 -0800 |
---|---|---|
committer | Andy Clement <aclement@vmware.com> | 2012-02-29 14:59:00 -0800 |
commit | 0cf0cb2dfb690891fe5eb7f4219e383ed666a0fc (patch) | |
tree | da488b31e7b5bd0a0525fceb88c2df7b30fcd466 /weaver | |
parent | b5835864bd821f0069797118cac017e39e893118 (diff) | |
download | aspectj-0cf0cb2dfb690891fe5eb7f4219e383ed666a0fc.tar.gz aspectj-0cf0cb2dfb690891fe5eb7f4219e383ed666a0fc.zip |
support -Xset:makeTjpFieldsTransient=truetransientTjp
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java index 6a41e410d..606bd2a96 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java @@ -981,7 +981,7 @@ public final class LazyClassGen { return tjpField; } - int modifiers = Modifier.STATIC | Modifier.FINAL; + int modifiers = Modifier.STATIC | Modifier.FINAL ; // XXX - Do we ever inline before or after advice? If we do, then we // better include them in the check below. (or just change it to @@ -1034,6 +1034,9 @@ public final class LazyClassGen { } } } + if (!isInterface() && world.isTransientTjpFields()) { + modifiers|=Modifier.TRANSIENT; + } FieldGen fGen = new FieldGen(modifiers, jpType, "ajc$tjp_" + tjpFieldsCounter++, getConstantPool()); addField(fGen); tjpField = fGen.getField(); |