java6 to 7