diff src/org/tmatesoft/hg/internal/WorkingCopyContent.java @ 622:4e6179bde4fc

Update to comply with Java 1.5 target
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 May 2013 16:56:40 +0200
parents 7c0d2ce340b8
children 6526d8adbc0f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/WorkingCopyContent.java	Sat May 18 22:23:57 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/WorkingCopyContent.java	Mon May 20 16:56:40 2013 +0200
@@ -64,7 +64,9 @@
 						return rv;
 					} catch (HgIOException ex) {
 						failure[0] = ex;
-						throw new IOException(ex);
+						IOException e = new IOException();
+						ex.initCause(ex); // XXX Java 1.5
+						throw e;
 					}
 				}
 			});