(1) A person who is acting as a judge or juror in proceedings is not competent to give evidence in the proceedings.
(2) A person who is or was acting as a judge in proceedings is not compellable to give evidence about the proceedings unless the court gives leave.