CommandHelper

CommandHelper

46.5k Downloads

Circular reference in arrays causes stack overflow when toString'd

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2727 - Reported by LadyCailin

@array1 = array()
@array2 = array(@array1)
@array1[] = @array2

msg(@array1) # Stack overflow

commented

Comment by LadyCailin

Incidentally, this happens in Java too, with Lists, so perhaps the behavior isn't a bug, but the stacktrace should at least be a MS exception.

commented

Comment by LadyCailin

Fixed.