A boom is attached to a body. A boom pin supports the boom while being swingable with respect to the body. A through-hole is made in the body. The through-hole is made such that a member (for example, the boom pin or a boom angle detector) that recognizes a position of the boom pin can be observed through the through-hole from a side of a hydraulic excavator.