fix according to changes on javase framework