Quantum analysis and the classical analysis of spontaneous emission in a microcavity