aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features190/efficientTJP/Clinit.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features190/efficientTJP/Clinit.java')
-rw-r--r--tests/features190/efficientTJP/Clinit.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/features190/efficientTJP/Clinit.java b/tests/features190/efficientTJP/Clinit.java
new file mode 100644
index 000000000..e8acea835
--- /dev/null
+++ b/tests/features190/efficientTJP/Clinit.java
@@ -0,0 +1,16 @@
+public class Clinit {
+ public static void main(String []argv) {
+ new Inner();
+ }
+
+ static class Inner {}
+}
+
+aspect X {
+ before(): staticinitialization(Clinit.Inner) {
+ System.out.println(thisJoinPointStaticPart.getSignature());
+ }
+ before(): staticinitialization(Clinit) {
+ System.out.println(thisJoinPointStaticPart.getSignature());
+ }
+}