reaction formation

reaction formation, an unconscious defense mechanism in which a person expresses toward another person or situation feelings, attitudes, or behaviors that are the opposite of what would normally be expected. An example is an alcoholic who criticizes social drinking.