diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-07-08 02:20:59 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-07-08 02:20:59 +0000 |
commit | 5a846bbe359bb0ff658d79e31c319276e47da4e9 (patch) | |
tree | a22efbdb289fcea2f9b9a645c137550149a93b91 /src/main/javassist/compiler/Javac.java | |
parent | 5372926c9102cd4fbc16bb8297bd80c50f3d8ab6 (diff) | |
download | javassist-5a846bbe359bb0ff658d79e31c319276e47da4e9.tar.gz javassist-5a846bbe359bb0ff658d79e31c319276e47da4e9.zip |
minor bugs have been fixed.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@27 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler/Javac.java')
-rw-r--r-- | src/main/javassist/compiler/Javac.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/Javac.java b/src/main/javassist/compiler/Javac.java index 491cff45..45d370bb 100644 --- a/src/main/javassist/compiler/Javac.java +++ b/src/main/javassist/compiler/Javac.java @@ -200,7 +200,11 @@ public class Javac { Parser p = new Parser(new Lex(src)); SymbolTable stb = new SymbolTable(stable); Stmnt s = p.parseStatement(stb); - gen.atMethodBody(s, method instanceof CtConstructor, isVoid); + boolean callSuper = false; + if (method instanceof CtConstructor) + callSuper = !((CtConstructor)method).isClassInitializer(); + + gen.atMethodBody(s, callSuper, isVoid); } return bytecode; |