diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-12-30 09:55:23 +0100 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-12-30 16:14:42 +0700 |
commit | c6a1bc127a9464bb1831fb04120123a62b100946 (patch) | |
tree | 2b9580f79022dcb02d4e6d5198fff78edfb38b24 /bcel-builder | |
parent | 4b46caabfc7aec455df6173a73d10afffddd8831 (diff) | |
download | aspectj-c6a1bc127a9464bb1831fb04120123a62b100946.tar.gz aspectj-c6a1bc127a9464bb1831fb04120123a62b100946.zip |
Fix TABLESWITCH weaver issue with Integer.MAX_VALUE
Fixes #190.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java b/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java index 518530985..ea669f642 100644 --- a/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java +++ b/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/TABLESWITCH.java @@ -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++) { |