On the convergence of the classical Jacobi method for real symmetric matrices with non-distinct eigenvalues