This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: array has IndexOutOfBoundsException
- From: Per Bothner <per at bothner dot com>
- To: Chris Dean <ctdean at mercedsystems dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Wed, 12 Mar 2003 10:09:37 -0800
- Subject: Re: array has IndexOutOfBoundsException
- References: <24288.1047462277@mercedsystems.com>
Well, that was embarrassing!
--
--Per Bothner
per at bothner dot com http://www.bothner.com/per/
Index: Arrays.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/kawa/functions/Arrays.java,v
retrieving revision 1.2
diff -u -r1.2 Arrays.java
--- Arrays.java 10 Jan 2003 04:55:02 -0000 1.2
+++ Arrays.java 12 Mar 2003 18:36:30 -0000
@@ -41,7 +41,7 @@
lowBounds = new int[rank];
lowBounds[i] = lo;
}
- total += size;
+ total *= size;
}
return GeneralArray.makeSimple(lowBounds, dimensions, new FVector(total, value));
}