Closed Milory closed 1 month ago
Jadx v1.4.7 is a bit outdated as 1.5.0 had been released on Apr 20. Have you tried it if the bug is still present? You can also test our latest unstable version https://nightly.link/skylot/jadx/workflows/build-artifacts/master
I am not able to reproduce this issue with latest master. Also, it looks exactly like the issue fixed in PR #2056, so it should be resolved also in 1.5.0 release.
I am not able to reproduce this issue with latest master. Also, it looks exactly like the issue fixed in PR #2056, so it should be resolved also in 1.5.0 release.
I made two attempts here. The first time I tried to download the latest unstable version and found that the problem still exists.
So the second time I tried to download the latest code from the master branch and compile it manually, but the problem still existed.
@Milory please share your Point.class
file.
Due to the inability to upload class files, I have compressed the files into zip files. Please check
@Milory looks like this issue will take some time to fix.
Turns out, current implementation of stack to register translator in jadx-input plugin can't handle blocks accessible only with jumps from later instructions because of unknown stack info. Such info can be parsed from StackMapTable
section, so I need to support this.
As a workaround for now, you can enable Preferences->Decompilation->Use dx/d8 to convert java bytecode
option in jadx-gui
or --use-dx
in jadx-cli
. This option enable conversion of java bytecode to dex internally using dx or d8 tools, such approach slightly slower and if d8 kicks in it might change code slightly, but it will work :rofl:
Done. Please check latest unstable build: https://nightly.link/skylot/jadx/workflows/build-artifacts/master
Issue details
platform
test code
Decompile and view source code
Initially I suspected it was a bug in the javassist library, but after executing the code I found that it worked properly.
I found that the logic here is normal
Relevant log output or stacktrace
Provide sample and class/method full name
No response
Jadx version
1.4.7