aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169
diff options
context:
space:
mode:
authoraclement <aclement>2010-03-13 01:02:47 +0000
committeraclement <aclement>2010-03-13 01:02:47 +0000
commite49b375f3b0d5d65b8a86d14298d0056fc289804 (patch)
tree1f52ca0237630f2ba33be1b3c769d22869420c0d /tests/bugs169
parent90de1cd02fa216dd6cfe47ab06bab30087836652 (diff)
downloadaspectj-e49b375f3b0d5d65b8a86d14298d0056fc289804.tar.gz
aspectj-e49b375f3b0d5d65b8a86d14298d0056fc289804.zip
48080: inserts in messages
Diffstat (limited to 'tests/bugs169')
-rw-r--r--tests/bugs169/pr48080/A.classbin0 -> 352 bytes
-rw-r--r--tests/bugs169/pr48080/A.java8
-rw-r--r--tests/bugs169/pr48080/Warnings.java26
-rw-r--r--tests/bugs169/pr48080/X.classbin0 -> 2162 bytes
4 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs169/pr48080/A.class b/tests/bugs169/pr48080/A.class
new file mode 100644
index 000000000..1c777108e
--- /dev/null
+++ b/tests/bugs169/pr48080/A.class
Binary files differ
diff --git a/tests/bugs169/pr48080/A.java b/tests/bugs169/pr48080/A.java
new file mode 100644
index 000000000..c8576ca79
--- /dev/null
+++ b/tests/bugs169/pr48080/A.java
@@ -0,0 +1,8 @@
+public class A {
+ public void m() {
+ }
+}
+
+aspect X {
+ declare warning: execution(* A.m(..)): "method found";
+}
diff --git a/tests/bugs169/pr48080/Warnings.java b/tests/bugs169/pr48080/Warnings.java
new file mode 100644
index 000000000..805bc4129
--- /dev/null
+++ b/tests/bugs169/pr48080/Warnings.java
@@ -0,0 +1,26 @@
+package p;
+
+aspect Checker {
+ declare warning: execution(* A.m(..)): "joinpoint location is {joinpoint.sourcelocation.sourcefile}:{joinpoint.sourcelocation.line}";
+ declare warning: execution(* A.m(..)): "joinpoint is {joinpoint}";
+ declare warning: execution(* A.m(..)): "joinpoint kind is {joinpoint.kind}";
+ declare warning: execution(* A.m(..)): "joinpoint kind is '{joinpoint.kind}'";
+ declare warning: execution(* A.m(..)): "joinpoint line is '{joinpoint.sourcelocation.line}'";
+ declare warning: execution(* A.m(..)): "joinpoint signature is {joinpoint.signature}";
+ declare warning: get(int *) && within(A): "joinpoint signature is {joinpoint.signature}";
+ declare warning: execution(* A.m(..)): "joinpoint declaring type is {joinpoint.signature.declaringType}";
+ declare warning: execution(* A.m(..)): "advice sourcelocation is {advice.sourcelocation.sourcefile}:{advice.sourcelocation.line}";
+ declare warning: get(int *): "aspect is {advice.aspecttype}";
+ declare warning: get(int *): "signature name for field is {joinpoint.signature.name}";
+ declare warning: execution(* A.m(..)): "signature name for method is {joinpoint.signature.name}";
+ declare warning: execution(* A.m(..)): "\\{}wibble";
+ declare warning: execution(* A.m(..)): "{}foobar";
+ declare warning: execution(* A.m(..)): "test {advice.sourcelocation.line}\\{}{joinpoint.sourcelocation.line}";
+}
+
+class A {
+ int i;
+ public void m() {
+ System.out.println(i);
+ }
+}
diff --git a/tests/bugs169/pr48080/X.class b/tests/bugs169/pr48080/X.class
new file mode 100644
index 000000000..1f95cc99c
--- /dev/null
+++ b/tests/bugs169/pr48080/X.class
Binary files differ