Commit 4c5c00c
committed
Handle usage of dirPathTrailingSlash in DirectoryPath
`dirPathTrailingSlash` is used both in `DirectoryPath` and `ZipArchiveFileLookup`,
the former is platform-depndent, while the latter always uses `/` as separator.
Previously, the code works by accident: `new JFile(dir, path)` and `dir.resolve(path)`
are able to handle `path = "java/lang"` on windows.1 parent 3ece9d5 commit 4c5c00c
File tree
3 files changed
+10
-3
lines changed- compiler/src/dotty/tools/dotc/classpath
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | | - | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments