This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Is this a known bug?

1 reply
Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Anyone know whether this is in JIRA, or if it should be? This was revealed by ScalaCheck, on 2.9.1: scala.collection.mutable.ArrayBuffer().slice(102450392, -2045033354) throws an out of memory error.
dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: Is this a known bug?

On Wed, Feb 1, 2012 at 05:36, Naftoli Gugenheim wrote:
> Anyone know whether this is in JIRA, or if it should be? This was revealed
> by ScalaCheck, on 2.9.1:
> scala.collection.mutable.ArrayBuffer().slice(102450392, -2045033354) throws
> an out of memory error.

I don't know if it is, but, IMHO, it should be. Curious, because paulp
did a major rewrite of slice/take/drop a while back.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland