Hi,

Thanks for reporting.
It was a bug and I fixed it for trunk in r28464.

Thanks,
-- Mikio

2014-10-22 21:26 GMT+09:00 Olga Gryshchenko <gryshchenko.olg...@gmail.com>:

> Hello,
>
> I have an issue with ArrayList.resize(). When I execute this:
>
> var x:ArrayList[Long] = new ArrayList[Long]();
>         Console.OUT.println("x " +x);
> x.resize(1);
>         Console.OUT.println("x " +x);
> x.resize(2);
>         Console.OUT.println("x " +x);
>
> I get the exception on the call of  x.resize(2);
>
> Here is the output:
>
> x []
> x [0]
> Uncaught exception at place 0: x10.lang.MultipleExceptions
> x10.lang.AssertionError
> at x10::lang::CheckedThrowable::fillInStackTrace()
> at x10aux::throwException(x10::lang::CheckedThrowable*)
> at
> at x10aux::x10__assert(bool)
> at x10::util::GrowableRail<long>::grow(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 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
>
> Am I using this function in a wrong way?
> Thanks in advance.
>
> Best,
> Olga
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to