The autosomal recessive bubble wing (bw) mutant was used to construct a translocation-based genetic sex sorting system in the melon fly, Bactrocera cucurbitae (Coquillett). The translocation stock has females with the bubble wing phenotype that are unable to fly, but the males are wild-type and fly normally. The bubble wing translocation strain has lower egg hatch, larval viability, and eclosion rates than the wild-type strain. Expression of the bubble wing trait is temperature-dependent, with high expression of the trait in 92% of adults at 23°C but in only 15% of adults at 28°C. This translocation-based sex sorting system is the only method available for automatic separation of male and female melon flies in sterile insect release programs.