fixed java1.6 compat.