Prosecutor Omid Talai said Phillip Bernard, 32, was sentenced to the maximum three years in jail, but will likely serve only eight months, the San Francisco Chronicle reported Monday.
Bernard was charged with a probation violation last month when he walked out of Judge Lillian Sing's courtroom and broke into her car.
"I will keep breaking into cars and houses. I will keep doing it and doing it and doing it," Bernard allegedly told officers while he was being arrested.
Bernard pleaded guilty to car burglary Friday before Judge Leslie Nichols and she had his probation from an earlier car burglary revoked. He was also ordered to pay $20 in restitution for smashing Sing's car window.