Steven: > You need to do arr.assumeSafeAppend(); Otherwise, the runtime is no aware of your invalidation of the last element. See my edit on SO: http://stackoverflow.com/q/6015008/541686