diff options
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr149560/AnnStyle.java | 20 | ||||
-rw-r--r-- | tests/bugs153/pr149560/CodeStyle.java | 17 |
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/bugs153/pr149560/AnnStyle.java b/tests/bugs153/pr149560/AnnStyle.java new file mode 100644 index 000000000..1941e6ca7 --- /dev/null +++ b/tests/bugs153/pr149560/AnnStyle.java @@ -0,0 +1,20 @@ +import org.aspectj.lang.annotation.*; +import org.aspectj.lang.*; + +@Aspect +class MyAspect { + @After("staticinitialization(*)") + public void x(JoinPoint.StaticPart thisJoinPointStaticPart) { + System.out.println("after initialization "+thisJoinPointStaticPart); + } +} + +public aspect AnnStyle { + + static { + } + + public static void main(String []argv) { + System.out.println("InstanceExists?"+Aspects.hasAspect(MyAspect.class)); + } +} diff --git a/tests/bugs153/pr149560/CodeStyle.java b/tests/bugs153/pr149560/CodeStyle.java new file mode 100644 index 000000000..09aaf48cd --- /dev/null +++ b/tests/bugs153/pr149560/CodeStyle.java @@ -0,0 +1,17 @@ +import org.aspectj.lang.*; + +aspect MyAspect { + after(): staticinitialization(*) { + System.out.println("after initialization "+thisJoinPointStaticPart); + } +} + +public aspect CodeStyle { + + static { + } + + public static void main(String []argv) { + System.out.println("InstanceExists?"+Aspects.hasAspect(MyAspect.class)); + } +} |