aboutsummaryrefslogtreecommitdiffstats
path: root/tests/model/pr145963_2
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-18 12:19:54 +0000
committeraclement <aclement>2006-08-18 12:19:54 +0000
commit193aa8c16ca07f5743987d8717d5308a54bfb8f4 (patch)
tree28acde2511f3eb353fb1e41fd502c57b575651e7 /tests/model/pr145963_2
parent59123b0efba484e81625d403ca36768e149bd451 (diff)
downloadaspectj-193aa8c16ca07f5743987d8717d5308a54bfb8f4.tar.gz
aspectj-193aa8c16ca07f5743987d8717d5308a54bfb8f4.zip
145963: binary entries in the model: testcode
Diffstat (limited to 'tests/model/pr145963_2')
-rw-r--r--tests/model/pr145963_2/BinaryAspect.aj12
-rw-r--r--tests/model/pr145963_2/C.java9
-rw-r--r--tests/model/pr145963_2/README.txt3
-rw-r--r--tests/model/pr145963_2/SourceAspect.aj12
-rw-r--r--tests/model/pr145963_2/pkg/BinaryAspect.classbin0 -> 3060 bytes
5 files changed, 36 insertions, 0 deletions
diff --git a/tests/model/pr145963_2/BinaryAspect.aj b/tests/model/pr145963_2/BinaryAspect.aj
new file mode 100644
index 000000000..4c4bccaee
--- /dev/null
+++ b/tests/model/pr145963_2/BinaryAspect.aj
@@ -0,0 +1,12 @@
+package pkg;
+
+public aspect BinaryAspect {
+
+ declare warning : (get(* System.out) || get(* System.err)) : "There should be no printlns";
+
+ pointcut p() : execution(* *.*(..));
+
+ before() : p() {
+ }
+
+}
diff --git a/tests/model/pr145963_2/C.java b/tests/model/pr145963_2/C.java
new file mode 100644
index 000000000..5004392f3
--- /dev/null
+++ b/tests/model/pr145963_2/C.java
@@ -0,0 +1,9 @@
+package pack;
+
+public class C {
+
+ public void method1() {
+ System.out.println("blah");
+ }
+
+}
diff --git a/tests/model/pr145963_2/README.txt b/tests/model/pr145963_2/README.txt
new file mode 100644
index 000000000..804f4fcf7
--- /dev/null
+++ b/tests/model/pr145963_2/README.txt
@@ -0,0 +1,3 @@
+To recreate the class files:
+
+ajc BinaryAspect.aj -d .
diff --git a/tests/model/pr145963_2/SourceAspect.aj b/tests/model/pr145963_2/SourceAspect.aj
new file mode 100644
index 000000000..e7200e567
--- /dev/null
+++ b/tests/model/pr145963_2/SourceAspect.aj
@@ -0,0 +1,12 @@
+package pkg;
+
+public aspect SourceAspect {
+
+ declare warning : (get(* System.out) || get(* System.err)) : "There should be no printlns";
+
+ pointcut p() : execution(* *.*(..));
+
+ before() : p() {
+ }
+
+}
diff --git a/tests/model/pr145963_2/pkg/BinaryAspect.class b/tests/model/pr145963_2/pkg/BinaryAspect.class
new file mode 100644
index 000000000..ba4ed1fe6
--- /dev/null
+++ b/tests/model/pr145963_2/pkg/BinaryAspect.class
Binary files differ