I have to disagree with some of the above. If an inspector is trying to enforce something that is not code then I think it is worth talking about. I am not in the habit of doing what the inspector wants simply because he doesn't like it. Show it to me in black and white or I will go over their head even for little stuff. Most of the guys we work with are more than happy to listen and discuss the code. If they are wrong they will admit it as will I.
If you guys are saying that a jb in a closet is not compliant then I will have to say that is incorrect. A jb does not need to be readily accessible so hidden behind clothing is perfectly legitimate.