This is an automated email from the ASF dual-hosted git repository.
pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/master by this push:
new c04b0abd5c FELIX-6536: use FileSeparator to work correctely on Windows
(#155)
c04b0abd5c is described below
commit c04b0abd5ce98392654db4088370332284a5a78e
Author: Karl Pauls <[email protected]>
AuthorDate: Thu May 26 16:40:41 2022 +0200
FELIX-6536: use FileSeparator to work correctely on Windows (#155)
---
.../main/java/org/apache/felix/framework/cache/DirectoryContent.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/src/main/java/org/apache/felix/framework/cache/DirectoryContent.java
b/framework/src/main/java/org/apache/felix/framework/cache/DirectoryContent.java
index 3e4a2ad934..624c541d59 100644
---
a/framework/src/main/java/org/apache/felix/framework/cache/DirectoryContent.java
+++
b/framework/src/main/java/org/apache/felix/framework/cache/DirectoryContent.java
@@ -67,7 +67,7 @@ public class DirectoryContent implements Content
throw new UncheckedIOException(e);
}
if (!canonicalPath.endsWith(File.separator)) {
- canonicalPath = canonicalPath + "/";
+ canonicalPath = canonicalPath + File.separator;
}
m_canonicalRoot = canonicalPath;
}