From 37e2bb8670ce198c66adb8611f6297ee2a54d1fd Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Fri, 24 Aug 2012 14:31:10 -0700 Subject: 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 --- test/077-method-override/src/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/077-method-override') 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"); } -- cgit v1.1