Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.2
Description
BCEL throws the ArrayIndexOutOfBoundsException when trying to construct a new org.apache.bcel.generic.MethodGen on a method containing the bytes compiled from the following code:
switch {
case Integer.MAX_VALUE:
break;
default:
b = true;
}
The method that does not handle this corner case correctly is org.apache.bcel.generic.TABLESWITCH.initFromFile(ByteSequence, boolean).