The justice is a law into himself or herself on that issue.
Immanuel Kant would've made a lousy lawyer, but a great judge!
The lawyer can reveal anything he is not forbidden to reveal. There are rules governing what a lawyer can say publicly about a litigation proceeding and those are meant to balance the interest in public discussion and the interest in an untainted trial.