RATIONALE: Methadone, morphine, or oxycodone may help relieve pain caused by cancer. It is not yet known whether methadone is more effective than morphine or oxycodone in treating pain in patients with cancer.