diff options
Diffstat (limited to 'tests/bugs153/pr149560/AnnStyle.java')
-rw-r--r-- | tests/bugs153/pr149560/AnnStyle.java | 20 |
1 files changed, 20 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)); + } +} |