java compat to 1.6