And they are equally unacceptable no matter when they are made: at trial, at a Krol hearing, at the water cooler, etc.
That kind of behaviour towards the people who come before you in your position as a public servant paid for by those same people demonstrates the opposite of the character needed to sit on the bench. It indicates someone unfit for such a powerful position.