diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/LEDataInputStream.d @ 21:9b96950f2c3c

the 'java' tree compiles on both D1-Tango and D2-Phobos
author Frank Benoit <benoit@tionex.de>
date Thu, 19 Mar 2009 20:38:55 +0100
parents f36c67707cb3
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/LEDataInputStream.d	Wed Mar 18 12:10:17 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/LEDataInputStream.d	Thu Mar 19 20:38:55 2009 +0100
@@ -123,7 +123,7 @@
         if (buf is null) throw new IOException("buf is null");
         if (offset < 0 || offset > buffer.length ||
             len < 0 || (len > buffer.length - offset)) {
-            throw new ArrayBoundsException(__FILE__,__LINE__);
+            throw new ArrayIndexOutOfBoundsException(__FILE__,__LINE__);
             }
 
         int cacheCopied = 0;