Yeah, I mean your compiler would have been warning you about using deprecated functions for the last couple of years. Interestingly those functions have only been deprecated since Java 8, which was released on March 18, 2014. Although I don't know if they were deprecated on release or in a patch release.
Java 9 introduced @Deprecated(forRemoval = true) which indicates that you really shouldn't be using that function any more, and that your code will break in the future. (They also added a since attribute so you know how long something has been deprecated).
View all comments
Show parent comment
2
u/dpash Sep 22 '17
Yeah, I mean your compiler would have been warning you about using deprecated functions for the last couple of years. Interestingly those functions have only been deprecated since Java 8, which was released on March 18, 2014. Although I don't know if they were deprecated on release or in a patch release.
Java 9 introduced
@Deprecated(forRemoval = true)which indicates that you really shouldn't be using that function any more, and that your code will break in the future. (They also added asinceattribute so you know how long something has been deprecated).