diff options
author | wisberg <wisberg> | 2004-04-05 09:24:57 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2004-04-05 09:24:57 +0000 |
commit | 8bf5e26fddd79c3625b929104e398990bc2d4886 (patch) | |
tree | 265cdd54dab3a4cf331d20568a8f03c28acdeb9f /tests/bugs/systemouts/src/pack/X.java | |
parent | b2befd4b1fcc89ae80553f3aabcb55ca89e50902 (diff) | |
download | aspectj-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.java | 43 |
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(""); + } +} |