Closed nitram84 closed 3 years ago
CFR 0.151-SNAPSHOT (dfdb9d5) and CFR 0.150, so this is not a regression of recent changes
openjdk8, openjdk11
Nested conditions could not be decompiled in some cases:
public class CFRTest1 { public int checkConditions(boolean a, boolean b, boolean c) { if (a) { if (b) { doSomething(); } else { if (c) { doSomething(); return 1; } else { doSomething(); return 0; } } } else { doSomething(); } doSomething(); return 2; } private void doSomething() { } }
This example can be used for the cfr test suite.
Hm - the fix is clean enough but does highlight that (hah, like your last issue) I can be a bit keen to use anonymous blocks. I think a few more transforms to reduce these, when I get a chance \o/
CFR version
CFR 0.151-SNAPSHOT (dfdb9d5) and CFR 0.150, so this is not a regression of recent changes
Compiler
openjdk8, openjdk11
Description
Nested conditions could not be decompiled in some cases:
Example
This example can be used for the cfr test suite.