commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r995624 - /commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java
Date Fri, 10 Sep 2010 00:57:23 GMT
Author: sebb
Date: Fri Sep 10 00:57:23 2010
New Revision: 995624

URL: http://svn.apache.org/viewvc?rev=995624&view=rev
Log:
The ctor IOE(Throwable) is Java 1.5+

Modified:
    commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java

Modified: commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java?rev=995624&r1=995623&r2=995624&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java
(original)
+++ commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/formats/ico/IcoImageParser.java
Fri Sep 10 00:57:23 2010
@@ -461,7 +461,9 @@ public class IcoImageParser extends Imag
 			}
 			catch (ImageWriteException imageWriteException)
 			{
-				throw new IOException(imageWriteException);
+			    IOException ioe = new IOException();
+			    ioe.initCause(imageWriteException);
+			    throw ioe;
 			}
 		}
 	}



Mime
View raw message