This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: array has IndexOutOfBoundsException


seems clear to me:

you make a new array with one element (shape 0 2 0 9)....

--> index 1 points to the second element...the first element has index 0.

-----Original Message-----
From: Chris Dean [mailto:ctdean at mercedsystems dot com]
Sent: woensdag 12 maart 2003 10:45
To: Kawa List
Subject: array has IndexOutOfBoundsException




Any idea what's going on here?

(define a (make-array (shape 0 2 0 9)))
(array-set! a 1 3 'e)
java.lang.IndexOutOfBoundsException
	at gnu.lists.SimpleVector.set(SimpleVector.java:144)
	at gnu.lists.GeneralArray.set(GeneralArray.java:135)
	at gnu.kawa.functions.ArraySet.applyN(ArraySet.java:55)
	at gnu.mapping.Procedure.apply(Procedure.java:102)
	at gnu.mapping.CallContext.runUntilDone(CallContext.java:239)
	at gnu.expr.ModuleExp.evalModule(ModuleExp.java:188)
	at kawa.Shell.run(Shell.java:232)
	at kawa.Shell.run(Shell.java:180)
	at kawa.Shell.run(Shell.java:167)
	at kawa.repl.processArgs(repl.java:333)
	at kawa.repl.main(repl.java:594)


Regards,
Chris Dean


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]