This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
incompatible change to resolve-uri and path handling
- From: Per Bothner <per at bothner dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Sat, 10 Oct 2015 19:54:11 -0700
- Subject: incompatible change to resolve-uri and path handling
- Authentication-results: sourceware.org; auth=none
I checked in various changes to the path class (gnu.kawa.io.Path)
and related sub-classes (URIPath, FilePath). These fix some bugs,
and update the resolve algorithm used by resolve-uri (and elsewhere)
to use the algorithm specified by RFC-3986. Previously it used
the resolve method of java.net.URI, which is based on the obsolete
RFC-2396. The biggest difference is that (resolve-uri "" X) now
returns X, rather than the directory of X. To get the directory of
X you can use (resolve-uri "." X) instead - or use path-directory.
Another change is that (path "foo") now returns a URI (a URIStringPath
instance), rather than a filepath.
--
--Per Bothner
per@bothner.com http://per.bothner.com/