It seems that when a sprite is touching the edge in the Java player, it thinks it is touching white. A new bug! All credit to Pinochio for discovering this.