From 5a846bbe359bb0ff658d79e31c319276e47da4e9 Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 8 Jul 2003 02:20:59 +0000 Subject: minor bugs have been fixed. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@27 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/compiler/Javac.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/javassist/compiler/Javac.java') 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; -- cgit v1.2.3