summaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/ParsingAndMatching1.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features152/synchronization/ParsingAndMatching1.java')
-rw-r--r--tests/features152/synchronization/ParsingAndMatching1.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/features152/synchronization/ParsingAndMatching1.java b/tests/features152/synchronization/ParsingAndMatching1.java
new file mode 100644
index 000000000..9c6ab82aa
--- /dev/null
+++ b/tests/features152/synchronization/ParsingAndMatching1.java
@@ -0,0 +1,18 @@
+// lock and static context
+
+public aspect ParsingAndMatching1 {
+
+ before(): lock() {
+ System.err.println("Advice running at "+thisJoinPoint.getSourceLocation());
+ }
+
+ public static void main(String[] args) {
+ staticM();
+ }
+
+ public static void staticM() {
+ synchronized (String.class) {
+ System.err.println("static method running");
+ }
+ }
+} \ No newline at end of file