Compat java 7