From: <ta...@us...> - 2009-06-22 17:50:12
|
Revision: 8572 http://x10.svn.sourceforge.net/x10/?rev=8572&view=rev Author: tardieu Date: 2009-06-22 17:50:11 +0000 (Mon, 22 Jun 2009) Log Message: ----------- reformatted printStackTrace for MultipleException Modified Paths: -------------- trunk/x10.compiler.p3/data/Main.xcd trunk/x10.runtime.17/src-x10/x10/lang/MultipleExceptions.x10 Modified: trunk/x10.compiler.p3/data/Main.xcd =================================================================== --- trunk/x10.compiler.p3/data/Main.xcd 2009-06-22 16:11:34 UTC (rev 8571) +++ trunk/x10.compiler.p3/data/Main.xcd 2009-06-22 17:50:11 UTC (rev 8572) @@ -37,12 +37,6 @@ } catch (java.lang.Throwable t) { t.printStackTrace(); - if (t instanceof x10.lang.MultipleExceptions) { - x10.core.ValRail<Throwable> exceptions = ((x10.lang.MultipleExceptions) t).exceptions; - for(int i = 0; i < exceptions.length; i++) { - exceptions.get(i).printStackTrace(); - } - } } } } Modified: trunk/x10.runtime.17/src-x10/x10/lang/MultipleExceptions.x10 =================================================================== --- trunk/x10.runtime.17/src-x10/x10/lang/MultipleExceptions.x10 2009-06-22 16:11:34 UTC (rev 8571) +++ trunk/x10.runtime.17/src-x10/x10/lang/MultipleExceptions.x10 2009-06-22 17:50:11 UTC (rev 8572) @@ -46,10 +46,7 @@ public def printStackTrace(): void { //super.printStackTrace(); for (t: Throwable in exceptions) { - x10.io.Console.OUT.println("throwable " + t); - - - t.printStackTrace(); + t.printStackTrace(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |