The larva spins a cocoon and pupates. The larva pupates and overwinters inside the body of the host. When the larva is mature it makes a silken cocoon around itself and pupates. When the larva attains its maximum size, it pupates and undergoes metamorphosis. The larva pupates in early summer in a papery cocoon attached to a grass stem. Just before it pupates, the oleander hawk-moth larva becomes browner in colour. When the Alcon larva is fully developed it pupates. The growing larva feeds upon the dung ball, pupates, and eventually emerges as an adult. Cells are capped by worker bees when the larva pupates. After several weeks, the larva pupates. The larva may remain inside of their host until spring, where it emerges and pupates. When the larva reaches about 8 millimeters in length it pupates. The Luna moth pupates after spinning a silk cocoon, which is thin and single layered. After moulting a few times, it spins a cocoon and pupates. When satiated with leaves, a bagworm caterpillar secures its case and pupates.