CFR will not properly decompile initiation of negative sized arrays.
Example
Example:
try {
String[] stringArray = new String[-5];
System.out.println("I will never be reached");
} catch (NegativeArraySizeException e) (
System.out.println("I will always be reached");
}
will be decompiled as:
try {
String[] stringArray = new String[]{};
System.out.println("I will never be reached");
} catch (NegativeArraySizeException e) (
System.out.println("I will always be reached");
}
CFR version
CFR 0.151-SNAPSHOT (00f0a88)
Compiler
javac 15.0.1
Description
CFR will not properly decompile initiation of negative sized arrays.
Example
Example:
will be decompiled as:
which is of course not equivalent.