Browse Source

Fix TABLESWITCH weaver issue with Integer.MAX_VALUE

Fixes #190.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tags/V1_9_20
Alexander Kriegisch 1 year ago
parent
commit
c6a1bc127a

+ 2
- 2
bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java View File

@@ -124,8 +124,8 @@ public class TABLESWITCH extends InstructionSelect {
indices = new int[matchLength];
targets = new InstructionHandle[matchLength];

for (int i = low; i <= high; i++) {
match[i - low] = i;
for (int i = 0; i < matchLength; i++) {
match[i] = low + i;
}

for (int i = 0; i < matchLength; i++) {

Loading…
Cancel
Save