Is Java's URI.resolve incompatible with RFC 3986 when the relative URI contains an empty path?
I believe the definition and implementation of Java's URI.resolve method is incompatible with RFC 3986 section 5.2.2 . I understand that the Java API defines how that method works, and if it were changed now it would break existing apps, but my question is this: Can anyone confirm my understanding that this method is incompatible with RFC 3986? I'm using the example from this question: java.net.URI resolve against only query string , which I will copy here: I'm trying to build URI's using the JDK java.net.URI. I want to append to an absolute URI object, a query (in String). In example: URI