You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am doing some research based on CFR! I have found a potential issue in the decompilation process of CFR: It seems that when a null reference generic class variable is decompiled, its type argument is being converted to Object.
The results are different between running the source code directly and running the decompiled code: the result of running the source code is true, while the result of running the decompiled code is false.
Would you please have a look at this? It is important for me!
Thanks a lot!
CFR version: CFR 0.153-SNAPSHOT (24c7433-dirty).
Javac version: openjdk 11.0.18 2023-01-17.
I also attach the source files and I hope they will be helpful: demo.zip.
The text was updated successfully, but these errors were encountered:
Hi! I am doing some research based on CFR! I have found a potential issue in the decompilation process of CFR: It seems that when a null reference generic class variable is decompiled, its type argument is being converted to Object.
Here is an example:
After being decompiled with CFR, the output is:
The variable
t1
loses its type argumentInteger
, and its type is transformed intoT1<Object>
undesirably.In addition, during extended research on this sample, it was discovered that if the reference value is not null, it may trigger semantic errors:
After being decompiled with CFR, the output is:
The results are different between running the source code directly and running the decompiled code: the result of running the source code is true, while the result of running the decompiled code is false.
Would you please have a look at this? It is important for me!
Thanks a lot!
CFR version: CFR 0.153-SNAPSHOT (24c7433-dirty).
Javac version: openjdk 11.0.18 2023-01-17.
I also attach the source files and I hope they will be helpful: demo.zip.
The text was updated successfully, but these errors were encountered: