diff options
Diffstat (limited to 'tests/pureJava/ParenKeywords.java')
-rw-r--r-- | tests/pureJava/ParenKeywords.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pureJava/ParenKeywords.java b/tests/pureJava/ParenKeywords.java new file mode 100644 index 000000000..37fb95531 --- /dev/null +++ b/tests/pureJava/ParenKeywords.java @@ -0,0 +1,17 @@ +import org.aspectj.testing.Tester; + +public class ParenKeywords { + public static void main(String[] args) { + if ((false) || (true)) { + new ParenKeywords().foo(); + } + Tester.checkEvents("foo"); + } + void foo() { + if ((this) == (null)) { + System.err.println("shouldn't happen"); + } else { + Tester.event("foo"); + } + } +} |