It takes a couple moments for them to forget their memories. Polnareff still had memories of his adult form for a while, and given that Jotaro beat Alessi the moment he was turned into a child, I think it's safe to say he was well aware of who he was