support JDK6