aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-03 14:53:38 +0000
committeraclement <aclement>2004-08-03 14:53:38 +0000
commitef7885fd1269261aec9cb1265f0e15472fdb03bb (patch)
treee3aba098c974b6e924317e6b44f1cbd990c659a3 /tests/bugs
parent2982b4cc622a2a95429b16f0aa3c55b7e20d798a (diff)
downloadaspectj-ef7885fd1269261aec9cb1265f0e15472fdb03bb.tar.gz
aspectj-ef7885fd1269261aec9cb1265f0e15472fdb03bb.zip
Some more fix for Bugzilla Bug 60015
NPE, Incorrect XLint:unmatchedSuperTypeInCall warning
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/IncorrectXlintOnInterface.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs/IncorrectXlintOnInterface.java b/tests/bugs/IncorrectXlintOnInterface.java
new file mode 100644
index 000000000..5ab34a717
--- /dev/null
+++ b/tests/bugs/IncorrectXlintOnInterface.java
@@ -0,0 +1,29 @@
+interface ILib { void run(); }
+
+class UnmatchedCallSupertype implements ILib {
+ public static void main(String[] args) {
+ new UnmatchedCallSupertype().run();
+ }
+ public void run() {
+ System.err.println(this.toString());
+ System.err.println(this.toString());
+ System.err.println(this.toString());
+ System.err.println(this.toString());
+ }
+}
+
+aspect X {
+
+ pointcut runCall() : call(* ILib.*(..));
+ pointcut monitor() : call(String clone(String)) || runCall();
+
+ before() : monitor() {
+ System.err.println(thisJoinPointStaticPart.getSignature().getDeclaringType().getName());
+ }
+}
+
+class Client {
+ public static void main(String[] args) { new Lib().run(); }
+ static class Lib implements ILib { public void run() {} }
+}
+