aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/tooManyErrors/DecErrors.aj3
-rw-r--r--tests/bugs/tooManyErrors/Joinpoints101.jarbin0 -> 1125 bytes
-rw-r--r--tests/bugs/tooManyErrors/Joinpoints101.java132
-rw-r--r--tests/bugs/tooManyErrors/readme.txt3
4 files changed, 138 insertions, 0 deletions
diff --git a/tests/bugs/tooManyErrors/DecErrors.aj b/tests/bugs/tooManyErrors/DecErrors.aj
new file mode 100644
index 000000000..ba1461632
--- /dev/null
+++ b/tests/bugs/tooManyErrors/DecErrors.aj
@@ -0,0 +1,3 @@
+aspect DecErrors {
+ declare error: within(Joinpoints101) && get(int *): "In Joinpoints101!";
+} \ No newline at end of file
diff --git a/tests/bugs/tooManyErrors/Joinpoints101.jar b/tests/bugs/tooManyErrors/Joinpoints101.jar
new file mode 100644
index 000000000..31f252a7c
--- /dev/null
+++ b/tests/bugs/tooManyErrors/Joinpoints101.jar
Binary files differ
diff --git a/tests/bugs/tooManyErrors/Joinpoints101.java b/tests/bugs/tooManyErrors/Joinpoints101.java
new file mode 100644
index 000000000..71147e7b6
--- /dev/null
+++ b/tests/bugs/tooManyErrors/Joinpoints101.java
@@ -0,0 +1,132 @@
+// A program containing 101 join points for 'get(int *)'
+
+public class Joinpoints101 {
+ public static void main(String[] args) {
+ new Joinpoints101().callMethod();
+ }
+ int l = 4;
+
+ public void callMethod() {
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+ System.err.println(l);
+
+ System.err.println(l);
+ }
+} \ No newline at end of file
diff --git a/tests/bugs/tooManyErrors/readme.txt b/tests/bugs/tooManyErrors/readme.txt
new file mode 100644
index 000000000..8f3fab3e5
--- /dev/null
+++ b/tests/bugs/tooManyErrors/readme.txt
@@ -0,0 +1,3 @@
+Build Joinpoints101.jar as follows:
+
+ajc -outjar Joinpoints101.jar Joinpoints101.java