This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

incompatible change to resolve-uri and path handling


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]