aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1919
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-12-30 09:52:09 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-12-30 16:14:42 +0700
commit4b46caabfc7aec455df6173a73d10afffddd8831 (patch)
tree1a1f774c096ba5964e98e818dfea6e067f2b4986 /tests/bugs1919
parenta570da916ab0f656f151261fde305ee0efa2f202 (diff)
downloadaspectj-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.java20
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);
+ }
+}