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
stable
jochen 26 years ago
parent e265aec125
commit 6892546ccd
  1. 4
      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++;
}

Loading…
Cancel
Save