i is a field. By copying it to j, it becomes enregistered because resize() is guaranteed not to affect j.