Any judge who was in office on December 31, 1974, and who reaches his mandatory retirement age within twelve months prior to the primary election at which his successor is to be elected, may serve through the end of the term to which he was elected.
La. R.S. § 13:10.1