be jdk6 compat.