harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r820984 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java
Date Fri, 02 Oct 2009 12:07:25 GMT
Author: tellison
Date: Fri Oct  2 12:07:24 2009
New Revision: 820984

URL: http://svn.apache.org/viewvc?rev=820984&view=rev
Log:
Enhance toString() to show exceptions details.

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java?rev=820984&r1=820983&r2=820984&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ExceptionsAttribute.java
Fri Oct  2 12:07:24 2009
@@ -91,7 +91,13 @@
     }
 
     public String toString() {
-        return "Exceptions: " + exceptions;
+        StringBuffer sb = new StringBuffer();
+        sb.append("Exceptions: ");
+        for (int i = 0; i < exceptions.length; i++) {
+            sb.append(exceptions[i]);
+            sb.append(' ');
+        }
+        return sb.toString();
     }
 
     protected void writeBody(DataOutputStream dos) throws IOException {



Mime
View raw message