Yes, what McCain did was inappropriate. If you look at my first post, you will see I said exactly that. If you look at what McCain said, he would agree.
While you are wearing the uniform it is inappropriate to publically trash your superiors. The bigger the audience, the bigger the problem. The higher your rank, the bigger the problem.