diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-15 08:58:14 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-15 08:58:14 +0700 |
commit | 565f37b1970268234d9a823e2631ba3ed3e03037 (patch) | |
tree | dc627f09995beee7932da7056a2be279294d9c0e /tests/bugs1920/github_190 | |
parent | 364059c00f2393b8221cea29bdb6b7eabfd5b5c0 (diff) | |
download | aspectj-565f37b1970268234d9a823e2631ba3ed3e03037.tar.gz aspectj-565f37b1970268234d9a823e2631ba3ed3e03037.zip |
Move 1.9.20 bug regression tests to the correct spots
Originally, I had intended to release a minor 1.9.19.1 release to fix
some bugs. But then, Java 20 support was implemented and merged, so the
next release will be 1.9.20. Therefore, I moved some bug regression
tests to the 1.9.20 suite.
Relates to #254.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs1920/github_190')
-rw-r--r-- | tests/bugs1920/github_190/SwitchCaseWith_Integer_MAX_VALUE.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs1920/github_190/SwitchCaseWith_Integer_MAX_VALUE.java b/tests/bugs1920/github_190/SwitchCaseWith_Integer_MAX_VALUE.java new file mode 100644 index 000000000..d083fe60f --- /dev/null +++ b/tests/bugs1920/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); + } +} |