support java 6