DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=36587>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36587 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED ------- Additional Comments From [EMAIL PROTECTED] 2007-01-26 18:17 ------- Here is a test case public void testThrowableCause() throws Exception { // hack for 1.4 Field f = PlatformInfo.class.getDeclaredField("hasStackTraceElement"); f.setAccessible(true); f.set(null, new Integer(0)); assertEquals(false, PlatformInfo.hasStackTraceElement()); Throwable t = new Throwable("Freedom") { public String getNextException() { return "cheese"; } public void printStackTrace(PrintWriter pw) { pw.println((Object)null); pw.print((Object)null); } }; ThrowableInformation ti = new ThrowableInformation(t); String s[] = ti.getThrowableStrRep(); for (int i = 0; i < s.length; i++) System.out.println(s[i]); } The second "print" causes this. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
