blackface is wrong (except when Robert Downey Jr. does it)
I suppose you refer to Tropic Thunder. I thought the same as well, before realizing that he does not do blackface. He plays an actor doing blackface. It's subtle, but there is a difference. So, in the end, his character is not a comment about black people, but about the arrogance and racism of blackface itself.