diff options
author | Ian Rogers <irogers@google.com> | 2012-08-24 14:31:10 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2012-08-24 14:31:10 -0700 |
commit | 37e2bb8670ce198c66adb8611f6297ee2a54d1fd (patch) | |
tree | acb2599ec95ef4f39fee0098b6a53209f6dedf1d /test/077-method-override | |
parent | 9da7f59c9059397182b9a97e898a42ec06d4d646 (diff) | |
download | art-37e2bb8670ce198c66adb8611f6297ee2a54d1fd.zip art-37e2bb8670ce198c66adb8611f6297ee2a54d1fd.tar.gz art-37e2bb8670ce198c66adb8611f6297ee2a54d1fd.tar.bz2 |
Extra debug output in test.
Fix a debug output for a failing case and add the stack trace details as
we have it.
Change-Id: I634c1743a7714a661d23905eccbd5044e48487e6
Diffstat (limited to 'test/077-method-override')
-rw-r--r-- | test/077-method-override/src/Main.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/077-method-override/src/Main.java b/test/077-method-override/src/Main.java index 2d10ee0..84bdf35 100644 --- a/test/077-method-override/src/Main.java +++ b/test/077-method-override/src/Main.java @@ -38,6 +38,7 @@ public class Main { } catch (NoSuchMethodError nsme) { /* NSME is subclass of ICCE, so check it explicitly */ System.err.println("Got NSME - ovws"); + nsme.printStackTrace(System.err); } catch (IncompatibleClassChangeError icce) { System.out.println("Got expected exception - ovws"); } @@ -45,7 +46,8 @@ public class Main { try { ((Base)derived).overrideStaticWithVirtual(); } catch (NoSuchMethodError nsme) { - System.err.println("Got NSME - ovws"); + System.err.println("Got NSME - oswv"); + nsme.printStackTrace(System.err); } catch (IncompatibleClassChangeError icce) { System.out.println("Got expected exception - oswv"); } |