diff options
Diffstat (limited to 'tests/features152/synchronization/ParsingAndMatching2.java')
-rw-r--r-- | tests/features152/synchronization/ParsingAndMatching2.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/features152/synchronization/ParsingAndMatching2.java b/tests/features152/synchronization/ParsingAndMatching2.java new file mode 100644 index 000000000..87599cb07 --- /dev/null +++ b/tests/features152/synchronization/ParsingAndMatching2.java @@ -0,0 +1,18 @@ +// unlock and static context + +public aspect ParsingAndMatching2 { + + before(): unlock() { + 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 |