Hi Olga,

fixed in r28471.  Thanks for your thorough testing - I've added your test
cases to the unit test for ArrayList.

Cheers,

Josh

On 23 October 2014 09:13, Olga Gryshchenko <gryshchenko.olg...@gmail.com>
wrote:

> Hello,
>
> I have one more problem with ArrayList.resize().
>
> When I run this
>
>         var x:ArrayList[Long] = new ArrayList[Long]();
>         x.resize(0);
>
> I get the following :
>
> Uncaught exception at place 0: x10.lang.MultipleExceptions
> x10.lang.ArrayIndexOutOfBoundsException: Index 0 out of range (length is 0)
> at x10aux::throwException(x10::lang::CheckedThrowable*)
> at x10::lang::throwNegativeArraySizeException()
> at x10::lang::checkBounds(long, long)
> at x10::lang::Rail<long>::clear(long, long)
> at x10::util::GrowableRail<long>::shrink(long)
> at x10::util::ArrayList<long>::resize(long, long)
> at x10::util::ArrayList<long>::resize(long)
> at CombiClassic::start(x10::lang::Rail<x10::lang::String*>*)
> at CombiClassic::main(x10::lang::Rail<x10::lang::String*>*)
> at x10aux::BootStrapClosure::__apply()
> at x10::lang::VoidFun_0_0::__apply(x10::lang::VoidFun_0_0*)
> at x10_lang_Runtime__closure__5::__apply()
> at x10::lang::VoidFun_0_0::__apply(x10::lang::VoidFun_0_0*)
> at x10::lang::Activity::run()
> at x10::lang::Runtime__Worker::loop()
> at x10::lang::Runtime__Worker::__apply()
> at x10::lang::Thread::thread_start_routine(void*)
> at GC_inner_start_routine
> at GC_call_with_stack_base
> at
> at clone
>
> Could you please help with this?
>
> Best regards,
> Olga Gryshchenko
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to