diff options
author | Semyon Danilov <samvimes@yandex.ru> | 2019-07-24 23:57:17 +0300 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2019-09-10 10:27:03 -0700 |
commit | d8821e28d6e4b59ab451dc166e96698646a6e750 (patch) | |
tree | 0336e70abf46f43a14d5830cc4bd3bc1f0e005d3 /weaver/testinputdata/org/aspectj | |
parent | 226df51a0cf61f8a1de5d1a7973de7f2fb7c0ff4 (diff) | |
download | aspectj-d8821e28d6e4b59ab451dc166e96698646a6e750.tar.gz aspectj-d8821e28d6e4b59ab451dc166e96698646a6e750.zip |
- dont't weave synthetic enum helper method for switch
- add test for switch on enum with around all advice
Signed-off-by: Semyon Danilov <samvimes@yandex.ru>
Diffstat (limited to 'weaver/testinputdata/org/aspectj')
-rw-r--r-- | weaver/testinputdata/org/aspectj/weaver/test/HelloWorldEnumSwitch.java | 21 |
1 files changed, 21 insertions, 0 deletions
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() { + } + } +} |