-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexOutOfBoundsExceptions #65
Comments
Inline comment found in
|
Friendly reminder, that this is still an ongoing issue and a constant pain when using the decompiled code for debugging things. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When decompiling particular classes, I sometimes encounter IndexOutOfBoundsExceptions, which manifest in the decompiled code as shown below:
I tried to look into this myself, but I had to realize, that I just understand too little of the decompilation process to find the root cause.
This problem is present since I started using your marvelous decompiler back in 2018 and also applies to the most recent v0.6.0 release. Due to the fact, that I used the decompiler primarily on licensed legacy code, I never found a way to provide some reproduction steps here.
Well, up to now.
By accident I found another class, that shows the same problem, but is freely available - compiled and in source.
(BTW: There is surely no need to decompile kotlin-stdlib, but as it shows the exact same exception as on the legacy java code, I use it for reproduction here.)
So, please consider the following reproduction steps:
java -jar procyon-decompiler-0.6.0.jar -ln -sl -o /tmp/out kotlin-stdlib-1.7.20.jar
/tmp/out/kotlin/SynchronizedLazyImpl.java
and find the inline comments of the decompiler logging the java.lang.IndexOutOfBoundsException.Some observations:
IndexOutOfBoundsException
for now.IndexOutOfBoundsException
is actually thrown in the console (afterDecompiling kotlin/text/StringsKt__StringsKt...
). But this one seems unrelated to the one inSynchronizedLazyImpl.java
.If you require more details (like the full inline comment), let me know. I didn't want to blow up the description here.
The text was updated successfully, but these errors were encountered: