From 5b4e86389c406cfcd05d87c52d46dc984c263eaf Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 10 Jul 2015 01:02:13 -0400 Subject: [PATCH] fix broken usage of path api --- core/src/main/java/org/elasticsearch/bootstrap/JarHell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/bootstrap/JarHell.java b/core/src/main/java/org/elasticsearch/bootstrap/JarHell.java index c27d81abbeb..3c306a17709 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/JarHell.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/JarHell.java @@ -90,7 +90,7 @@ public class JarHell { logger.debug("excluding system resource: {}", path); continue; } - if (path.endsWith(".jar")) { + if (path.toString().endsWith(".jar")) { if (!seenJars.add(path)) { logger.debug("excluding duplicate classpath element: {}", path); continue; // we can't fail because of sheistiness with joda-time