From d8821e28d6e4b59ab451dc166e96698646a6e750 Mon Sep 17 00:00:00 2001 From: Semyon Danilov Date: Wed, 24 Jul 2019 23:57:17 +0300 Subject: - dont't weave synthetic enum helper method for switch - add test for switch on enum with around all advice Signed-off-by: Semyon Danilov --- .../aspectj/weaver/test/HelloWorldEnumSwitch.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 weaver/testinputdata/org/aspectj/weaver/test/HelloWorldEnumSwitch.java (limited to 'weaver/testinputdata/org/aspectj') diff --git a/weaver/testinputdata/org/aspectj/weaver/test/HelloWorldEnumSwitch.java b/weaver/testinputdata/org/aspectj/weaver/test/HelloWorldEnumSwitch.java new file mode 100644 index 000000000..f0d3cb03a --- /dev/null +++ b/weaver/testinputdata/org/aspectj/weaver/test/HelloWorldEnumSwitch.java @@ -0,0 +1,21 @@ +public class HelloWorldEnumSwitch { + + public static void main(String[] args) { + switch(TestEnum.A) { + case A: + System.out.println("A"); + break; + case B: + System.out.println("B"); + } + + } + + public static enum TestEnum { + A, + B; + + private TestEnum() { + } + } +} -- cgit v1.2.3