diff options
author | aclement <aclement> | 2004-04-23 12:25:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-04-23 12:25:31 +0000 |
commit | 48ff20ef404ac9751d37a6f01b04f3dcd502d97b (patch) | |
tree | ea3e40e4897a25f8df681c9611857b7ed4f5df6d /tests/bugs | |
parent | 46f528db591839007a9c39c52d22b3cb1ecaf3ff (diff) | |
download | aspectj-48ff20ef404ac9751d37a6f01b04f3dcd502d97b.tar.gz aspectj-48ff20ef404ac9751d37a6f01b04f3dcd502d97b.zip |
Testcase for Bug 58679
Regression from 1.1: NPE in CompilationResult
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/tooManyErrors/DecErrors.aj | 3 | ||||
-rw-r--r-- | tests/bugs/tooManyErrors/Joinpoints101.jar | bin | 0 -> 1125 bytes | |||
-rw-r--r-- | tests/bugs/tooManyErrors/Joinpoints101.java | 132 | ||||
-rw-r--r-- | tests/bugs/tooManyErrors/readme.txt | 3 |
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 Binary files differnew file mode 100644 index 000000000..31f252a7c --- /dev/null +++ b/tests/bugs/tooManyErrors/Joinpoints101.jar 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 |