As far as I know, jailbreaking doesn't do anything permanent, so the warranty problem can easily be gotten around by restoring the phone.