java compat with 1.6