diff options
author | 2015-12-17 14:13:00 +0000 | |
---|---|---|
committer | 2017-06-02 16:53:23 +0100 | |
commit | f6c66c3348a2b64e4b6472827e31f711142006e3 (patch) | |
tree | 0795f80e2c07dc79904590ddeb0fbe55ba9e6176 /test/045-reflect-array/src/Main.java | |
parent | 1656ca9e6996cb555b4463e5efd4bd7e3f4fb816 (diff) |
Tests: never use System.err
Always print stack traces to System.out, and replace all
System.err.println()'s with System.out.println().
Follow-up of https://android-review.googlesource.com/#/c/187020/ and
https://android-review.googlesource.com/#/c/407032/.
Test: m test-art-host
m test-art-target
Change-Id: I9ab9cd955a8db25b2ec6673790e5bc924f62c88a
Diffstat (limited to 'test/045-reflect-array/src/Main.java')
-rw-r--r-- | test/045-reflect-array/src/Main.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/045-reflect-array/src/Main.java b/test/045-reflect-array/src/Main.java index 7418eed824..4c321b3303 100644 --- a/test/045-reflect-array/src/Main.java +++ b/test/045-reflect-array/src/Main.java @@ -102,7 +102,7 @@ public class Main { throw new RuntimeException("load should have worked"); } } catch (IllegalArgumentException iae) { - iae.printStackTrace(); + iae.printStackTrace(System.out); } try { Array.getByte(charArray, 2); @@ -116,7 +116,7 @@ public class Main { + Array.getInt(charArray, 3)); } } catch (IllegalArgumentException iae) { - iae.printStackTrace(); + iae.printStackTrace(System.out); } System.out.println("ReflectArrayTest.testSingleChar passed"); |