summaryrefslogtreecommitdiffstats
path: root/tests/model/pr145963_1
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_1
parent59123b0efba484e81625d403ca36768e149bd451 (diff)
downloadaspectj-193aa8c16ca07f5743987d8717d5308a54bfb8f4.tar.gz
aspectj-193aa8c16ca07f5743987d8717d5308a54bfb8f4.zip
145963: binary entries in the model: testcode
Diffstat (limited to 'tests/model/pr145963_1')
-rw-r--r--tests/model/pr145963_1/BinaryAspect.aj12
-rw-r--r--tests/model/pr145963_1/C.java9
-rw-r--r--tests/model/pr145963_1/README.txt3
-rw-r--r--tests/model/pr145963_1/SourceAspect.aj12
-rw-r--r--tests/model/pr145963_1/simple.jarbin0 -> 1379 bytes
5 files changed, 36 insertions, 0 deletions
diff --git a/tests/model/pr145963_1/BinaryAspect.aj b/tests/model/pr145963_1/BinaryAspect.aj
new file mode 100644
index 000000000..4c4bccaee
--- /dev/null
+++ b/tests/model/pr145963_1/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_1/C.java b/tests/model/pr145963_1/C.java
new file mode 100644
index 000000000..5004392f3
--- /dev/null
+++ b/tests/model/pr145963_1/C.java
@@ -0,0 +1,9 @@
+package pack;
+
+public class C {
+
+ public void method1() {
+ System.out.println("blah");
+ }
+
+}
diff --git a/tests/model/pr145963_1/README.txt b/tests/model/pr145963_1/README.txt
new file mode 100644
index 000000000..1ac8c1ffc
--- /dev/null
+++ b/tests/model/pr145963_1/README.txt
@@ -0,0 +1,3 @@
+To recreate the jar files:
+
+ajc BinaryAspect.aj -outjar simple.jar
diff --git a/tests/model/pr145963_1/SourceAspect.aj b/tests/model/pr145963_1/SourceAspect.aj
new file mode 100644
index 000000000..e7200e567
--- /dev/null
+++ b/tests/model/pr145963_1/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_1/simple.jar b/tests/model/pr145963_1/simple.jar
new file mode 100644
index 000000000..3f063340b
--- /dev/null
+++ b/tests/model/pr145963_1/simple.jar
Binary files differ