apply to java1.6