Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The URL class in Java is special, as in especially broken. It's very old code that probably wasn't a good idea even back then, and it's never been changed for backwards compat reasons.

Use java.net.Uri, or e.g. the equivalent from Jersey or whatever your local framework/HTTP client/... brings with it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: