add java8 spec but not working