diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-12-30 09:52:09 +0100 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-12-30 16:14:42 +0700 |
commit | 4b46caabfc7aec455df6173a73d10afffddd8831 (patch) | |
tree | 1a1f774c096ba5964e98e818dfea6e067f2b4986 /tests/bugs1919 | |
parent | a570da916ab0f656f151261fde305ee0efa2f202 (diff) | |
download | aspectj-4b46caabfc7aec455df6173a73d10afffddd8831.tar.gz aspectj-4b46caabfc7aec455df6173a73d10afffddd8831.zip |
Regression test for #190
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs1919')
-rw-r--r-- | tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java b/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java new file mode 100644 index 000000000..d083fe60f --- /dev/null +++ b/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java @@ -0,0 +1,20 @@ +public class SwitchCaseWith_Integer_MAX_VALUE { + public static void main(String[] args) { + System.out.println(switchTest(Integer.MAX_VALUE)); + } + + static String switchTest(int i) { + switch (i) { + case Integer.MAX_VALUE: + return "CASE_1"; + default: + return ""; + } + } +} + +aspect MyAspect { + before() : execution(* switchTest(*)) { + System.out.println(thisJoinPoint); + } +} |