Hi
On jdk 1.3 the test
testFromURI()
will fail because with jdk 1.3 no drive letter is inserted for a path
that does not contain a drive letter.
with jdk 1.5 the drive letter is inserted for a path that is "drive
absolute"
the fromURI method has javadoc claiming the following:
/**
* Constructs a file path from a <code>file:</code> URI.
*
* <p>Will be an absolute path if the given URI is absolute.</p>
*
* <p>Swallows '%' that are not followed by two characters,
* doesn't deal with non-ASCII characters.</p>
*
* @param uri the URI designating a file in the local filesystem.
* @return the local file system path for the file.
* @since Ant 1.6
*/
One could argue that a path without a drive letter is not absolute but
relative and therefore the drive letter should not be inserted at all.
(And the test should fail for jdk 1.5 and not jdk 1.3.) Definitely the
behaviour should be the same. What is your opinion on the required
behaviour?
Martijn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]