On Thu, Nov 19, 2009 at 04:31:39PM -0800, David Pollak wrote:
> I spent most of today tracking down a bug that I can't reproduce in
> isolation, but it seems that the ensureCapacity method in Scala's
> StringBuilder method has an infinite:
Yeah, it was pretty obvious knowing it was there. This will show it:
new StringBuilder(0, "").ensureCapacity(1)
Because:
while (n > newsize)
newsize = newsize * 2
And um 0 * 2 == 0
--
Paul Phillips | Simplicity and elegance are unpopular because
Stickler | they require hard work and discipline to achieve
Empiricist | and education to be appreciated.
i pull his palp! | -- Dijkstra
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=.