Commit 0299c09
committed
Add a regression test for urlToFile(directory)
Java on Windows really has problems in that department: the default
AppClassLoader is a URLClassLoader whose getURLs() method returns URLs
of the form:
file:C:/path/to/file.jar
i.e. omitting a slash: it should read
file:/C:/path/to/file.jar
instead, otherwise, when converted into a URI via the toURI() method,
then passed onto a File constructor, one will see the lovely message:
IllegalArgumentException: URI is not hierarchical
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent bf03041 commit 0299c09
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments