We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CFR 0.153-SNAPSHOT (24c7433-dirty)
javac 11.0.20.1
CFR may exhibit type errors in the decompilation of ternary expressions.
Example code is as follows:
class T1 { public Object foo(boolean b) { Integer i1 = 1; return ((b) ? i1 : (Byte[]) new Object[] { (byte) -98 }); } }
The decompiled code is as follows:
/* * Decompiled with CFR 0.153-SNAPSHOT (24c7433-dirty). */ class T1 { T1() { } public Object foo(boolean bl) { Byte[] byteArray = Integer.valueOf(1); return bl ? byteArray : (Byte[])new Object[]{(byte)-98}; } }
Integer.valueOf(1) returns an int type instead of Byte[] type, which causes a compilation error.
Integer.valueOf(1)
int
Byte[]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CFR version
CFR 0.153-SNAPSHOT (24c7433-dirty)
Compiler
javac 11.0.20.1
Description
CFR may exhibit type errors in the decompilation of ternary expressions.
Example
Example code is as follows:
The decompiled code is as follows:
Integer.valueOf(1)
returns anint
type instead ofByte[]
type, which causes a compilation error.The text was updated successfully, but these errors were encountered: