diff options
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); + } +} |