Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2019-02-27 05:22:11 -0500
committerJay Arthanareeswaran2019-03-03 23:29:00 -0500
commit3325ba8a5c8f5838e0a099c7cdf97d24854143fd (patch)
tree582f3b65c928d7b0a67aa82c966abcccc60eb799 /org.eclipse.jdt.compiler.apt
parent348aad642ce79be7112961b7d8acaa520a45e279 (diff)
downloadeclipse.jdt.core-3325ba8a5c8f5838e0a099c7cdf97d24854143fd.tar.gz
eclipse.jdt.core-3325ba8a5c8f5838e0a099c7cdf97d24854143fd.tar.xz
eclipse.jdt.core-3325ba8a5c8f5838e0a099c7cdf97d24854143fd.zip
Change-Id: I72b85041530a75f7b3f277738e68e1c025e4ae96 Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java
index c54b616aec..b23b9f4192 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java
@@ -93,7 +93,11 @@ public class JrtFileSystem extends Archive {
@Override
public FileVisitResult visitModule(Path mod) throws IOException {
- JrtFileSystem.this.modulePathMap.put(mod.getFileName().toString(), mod);
+ String name = mod.getFileName().toString();
+ if (name.endsWith("/")) { //$NON-NLS-1$
+ name = name.substring(0, name.length() - 1);
+ }
+ JrtFileSystem.this.modulePathMap.put(name, mod);
return FileVisitResult.CONTINUE;
}
}, JRTUtil.NOTIFY_MODULES);

Back to the top