check for jumps

new field interface


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@272 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0e55e234a6
commit a0b46d37c5
  1. 8
      jode/jode/flow/TransformConstructors.java

@ -36,6 +36,9 @@ public class TransformConstructors {
int constrCount = cons.length; int constrCount = cons.length;
StructuredBlock[] sb = new StructuredBlock[constrCount]; StructuredBlock[] sb = new StructuredBlock[constrCount];
for (int i=0; i< constrCount; ) { for (int i=0; i< constrCount; ) {
FlowBlock header = cons[i].getMethodHeader();
if (!header.hasNoJumps())
return;
sb[i] = cons[i].getMethodHeader().block; sb[i] = cons[i].getMethodHeader().block;
// Decompiler.err.println("constr "+i+": "+sb[i]); // Decompiler.err.println("constr "+i+": "+sb[i]);
if (!isStatic) { if (!isStatic) {
@ -133,8 +136,9 @@ public class TransformConstructors {
} }
if (!clazzAnalyzer.setFieldInitializer(pfo.getFieldName(), if (!(clazzAnalyzer
pfo.getFieldType(), expr)) { .getField(pfo.getFieldName(), pfo.getFieldType())
.setInitializer(expr))) {
// Decompiler.err.println("setField failed"); // Decompiler.err.println("setField failed");
break big_loop; break big_loop;
} }

Loading…
Cancel
Save