The judge is saying he can predict how someone else will feel in the future (i.e. he can predict the future), which unless he is omnipotent is a false premise in my book.
The judge is saying he can predict how someone else will feel in the future (i.e. he can predict the future), which unless he is omnipotent is a false premise in my book.
The question encourages you to start from a flawed premise to begin with. Why must the judge's first statement be True? A judge cannot guarantee how someone will feel the future. Further, why must the prisoner be surprised at the date of his execution? If the prisoner is not surprised at his date of execution, that is also a logically consistent situation.
The question tries to shoehorn you into an irreconcilable input state and output state. Yes, it is a paradox if you assume the question's implied start and end result. However if you remove the limitations implied by the question, in the bigger picture there is no paradox.
"Surprise" isn't meant primarily as "the prisoner will feel surprised" (though the ending is more pithy if it is put that way), but rather "the event will not be logically predictable for the prisoner".