Figure 9. Before pupating, larvae enter a resting phase, often curled over in the shape of a J.
EAB larvae, folded over to form a J shape, in a chamber in wood

Kelly Oten  CC BY 4.0