diff options
Diffstat (limited to 'tests/new/StaticInitCE.java')
-rw-r--r-- | tests/new/StaticInitCE.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/new/StaticInitCE.java b/tests/new/StaticInitCE.java new file mode 100644 index 000000000..e13a9b47a --- /dev/null +++ b/tests/new/StaticInitCE.java @@ -0,0 +1,19 @@ + +public class StaticInitCE { + public static void main(String[] args) { + new C(); + } +} + +class C { C() { } } + +aspect A { + // PR#458 + void around(): staticinitialization(C) { + proceed(); + } + // PR#490 + void around(): initialization(C.new()) { + proceed(); + } +} |