I would call them both very stupid men.
Hernandez and McCain's apparent belief that the party faithful will vote for whomever Massa GOP decrees as worthy of their vote gives them the gumption to pull stunts like this.
When McCain loses votes for this and other shenanigans, he will stop. But He must lose votes on a large scale to get the message.