Skip to content

api: Remove io.grpc.Uri#isAbsolute() - #12959

Open
jdcormie wants to merge 1 commit into
grpc:masterfrom
jdcormie:remove-is-absolute
Open

api: Remove io.grpc.Uri#isAbsolute()#12959
jdcormie wants to merge 1 commit into
grpc:masterfrom
jdcormie:remove-is-absolute

Conversation

@jdcormie

Copy link
Copy Markdown
Member

Javadoc says this method only exists for compatibility with java.net.URI but the meaning of "absolute" actually changed from RFC 2396 to 3986 so isAbsolute() is more of a trap than a convenience.

io.grpc.Uri intentionally only models URIs, not URI references. So under the RFC 2396 definition of absolute, every instance is absolute because it has a scheme.

Removing isAbsolute() also avoids confusion with absolute paths, an entirely different concept.

Javadoc says this method only exists for compatibility with java.net.URI
but the meaning of "absolute" actually changed from RFC 2396 to 3986 so
isAbsolute() is more of a trap than a convenience.

io.grpc.Uri intentionally only models URIs, not URI references. So under 
the RFC 2396 definition of absolute, every instance is absolute because it
has a scheme.

Removing isAbsolute() also avoids confusion with absolute paths, an entirely 
different concept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant