harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r559141 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java
Date Tue, 24 Jul 2007 17:57:34 GMT
Author: ayza
Date: Tue Jul 24 10:57:33 2007
New Revision: 559141

URL: http://svn.apache.org/viewvc?view=rev&rev=559141
Log:
Improve exception handling diagnostics, see HARMONY-4196.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java?view=diff&rev=559141&r1=559140&r2=559141
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/InputStreamReader.java
Tue Jul 24 10:57:33 2007
@@ -100,7 +100,8 @@
                     CodingErrorAction.REPLACE).onUnmappableCharacter(
                     CodingErrorAction.REPLACE);
         } catch (IllegalArgumentException e) {
-            throw new UnsupportedEncodingException();
+            throw (UnsupportedEncodingException)
+                    new UnsupportedEncodingException().initCause(e);
         }
         bytes.limit(0);
     }



Mime
View raw message