Closed ambergorzynski closed 2 months ago
Fixed. @ambergorzynski thanks for test case, although it is way too synthetic, now jadx outputs
public void testCase(int[] iArr, int[] iArr2) {
if (0 != 0) {
while (1 == 0) {
}
}
int i = 0 + 1;
}
and it still not compilable because of "unreachable statement" :rofl: Compilable and meaningful cases are preferred :slightly_smiling_face:
BTW, if you're still using Jasmin, it will be nice if you also look at my raung project, any feedback is welcome.
Thanks! Understood on the compilable and meaningful case preference :grin:
And thanks for pointing me to raung, looks very cool! I will check it out.
Issue details
I am using jadx to decompile class files that were originally written in textual bytecode using Jasmin. I am aware that this is an atypical use case and so may be out of scope for jadx! The original method is relatively simple to restructure by hand so I am opening an issue in case it is of interest:
However jadx fails to decompile and warns that code restructuring fails:
Relevant log output or stacktrace
No response
Provide sample and class/method full name
I attach a .zip file with the following:
program.j
which is the original bytecode progamTestCase.class
which is the class file associated withprogram.j
TestCase.java
which is the output of applying JadX toTestCase.class
example.zip
Jadx version
1.5.0