From 6892546ccdd989dfcf9ad4d2d6dda5060186f2a5 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 24 Nov 1998 23:10:05 +0000 Subject: [PATCH] Fix a bug with mixed super() and this() git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@133 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/TransformConstructors.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jode/jode/flow/TransformConstructors.java b/jode/jode/flow/TransformConstructors.java index b3094b6..0e069b4 100644 --- a/jode/jode/flow/TransformConstructors.java +++ b/jode/jode/flow/TransformConstructors.java @@ -66,7 +66,8 @@ public class TransformConstructors { /* This constructor calls another constructor, so we * can skip it. */ - sb[i] = sb[--constrCount]; + System.err.println("skipping this()"); + cons[i] = cons[--constrCount]; continue; } /* This constructor begins with a super call, as @@ -79,6 +80,7 @@ public class TransformConstructors { sb[i] = sb[i].getSubBlocks()[1]; else sb[i] = null; + System.err.println("normal constructor"); } i++; }