aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1920/github_190
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-08-15 08:58:14 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-08-15 08:58:14 +0700
commit565f37b1970268234d9a823e2631ba3ed3e03037 (patch)
treedc627f09995beee7932da7056a2be279294d9c0e /tests/bugs1920/github_190
parent364059c00f2393b8221cea29bdb6b7eabfd5b5c0 (diff)
downloadaspectj-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.java20
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);
+ }
+}