aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/systemouts/src/pack/X.java
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-04-05 09:24:57 +0000
committerwisberg <wisberg>2004-04-05 09:24:57 +0000
commit8bf5e26fddd79c3625b929104e398990bc2d4886 (patch)
tree265cdd54dab3a4cf331d20568a8f03c28acdeb9f /tests/bugs/systemouts/src/pack/X.java
parentb2befd4b1fcc89ae80553f3aabcb55ca89e50902 (diff)
downloadaspectj-8bf5e26fddd79c3625b929104e398990bc2d4886.tar.gz
aspectj-8bf5e26fddd79c3625b929104e398990bc2d4886.zip
@testcase PR#57432 NPE's when writing some declare error
Diffstat (limited to 'tests/bugs/systemouts/src/pack/X.java')
-rw-r--r--tests/bugs/systemouts/src/pack/X.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/bugs/systemouts/src/pack/X.java b/tests/bugs/systemouts/src/pack/X.java
new file mode 100644
index 000000000..29803554c
--- /dev/null
+++ b/tests/bugs/systemouts/src/pack/X.java
@@ -0,0 +1,43 @@
+
+package pack;
+
+public final class X {
+
+ public static void ut(boolean b, String m) {
+ if (!b) {
+ try {
+ if (b)
+ return;
+ } catch (RuntimeException e) {
+ System.out.println("");
+ e.printStackTrace(System.out);
+ }
+ }
+ }
+
+
+ public static void printArgs(String programName, String[] args) {
+ System.out.print(programName);
+ for (int i=0; i<args.length; i++){
+ System.out.print(" ");
+ System.out.print(args[i]);
+ }
+ }
+ static void t() {
+ System.out.print("s");
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.print('.');
+ System.out.flush();
+ System.out.println("");
+ }
+}