diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-06-22 11:50:48 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-06-22 11:50:48 +0000 |
commit | 0bc991544790227ea04309acd3f094ee2dddf48f (patch) | |
tree | 1e3b4abdb97b0e115a960192fe5763c2e3d2ceb1 /src/main/javassist/expr/Expr.java | |
parent | 42a85cc5b90cd0909b7f429f002d702f5ab2a688 (diff) | |
download | javassist-0bc991544790227ea04309acd3f094ee2dddf48f.tar.gz javassist-0bc991544790227ea04309acd3f094ee2dddf48f.zip |
fixed a bug of CtClassType#releaseClassFiles()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@391 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/expr/Expr.java')
-rw-r--r-- | src/main/javassist/expr/Expr.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/javassist/expr/Expr.java b/src/main/javassist/expr/Expr.java index 6d9566f9..e21d148d 100644 --- a/src/main/javassist/expr/Expr.java +++ b/src/main/javassist/expr/Expr.java @@ -247,6 +247,11 @@ public abstract class Expr implements Opcode { } } + // The implementation of replace() should call thisClass.checkModify() + // so that isModify() will return true. Otherwise, thisClass.classfile + // might be released during compilation and the compiler might generate + // bytecode with a wrong copy of ConstPool. + /** * Replaces this expression with the bytecode derived from * the given source text. |