by oldgeek · 6y ago · 0 comments
It hasn't been deprecated, it's still in use in the standard library[1][2][3] and they don't offer additional classes that accept URIs.
> Easy to be a harsh judge now but back when java was first developed...
They've made no effort over 11 major versions to diminish its use beyond a brief note that encoding is easier with URIs. There's not even a warning on the equals or hashCode method, let alone the class documentation, it just quietly mentions that it's resolving a name. There's no way people are finding out that you should avoid URL except through lore.
[1]: https://docs.oracle.com/en/java/javase/12/docs/api/java.base...
[2]: https://docs.oracle.com/en/java/javase/12/docs/api/java.base...
[3]: https://docs.oracle.com/en/java/javase/12/docs/api/java.base...
Design Patterns (Elements of Reusable Object-Oriented Software), Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides, 1995]
Same year Java was invented. Hard to imagine Java inspired it.