Judges are lawyers, and they take an oath. This judge can be disbarred for that command.
That is actually one of the most important points the defendant could bring up. “Do you have a a duly sworn oath on file” directed to the judge. Last I heard, there was a crapstorm brewing over this down LA way because some prosecutors didn’t have valid oaths on file, and their cases, past and present were at risk for this oversight.