Re: clearance for j boxes
The first paragraph of 110.26:
Sufficient access and working space shall be provided and maintained about all electric EQUIPMENT to permit ready and safe operation and maintenance of such EQUIPMENT.
Article 100 - Equipment: A general term including material, fittings, DEVICES, appliances, luminaires (fixtures), apparatus, and the like used as part of, or in connection with, an electrical installation.
The first general paragraph of 110.26 and the definition would seem to substantiate the inspector's decision. Who wants to come back later and have to work on the wiring behind the compressor.
110.26 is one of the few requirements in the NEC that protects the electrician, we should be glad it is there.
Pierre