Correct me if I'm wrong here, but your Dog is an Array of Dog objects. But non-the-less it's an Array. Calling Dog instance of Dog is basically saying Array instanceof Dog, which obviously is false. Hope that helps.
Joined: Sep 03, 2007
i think you are correct, it is ashame that even an array of Dog as type of dogs cant make it in the instanceof test.