From 6a644e2e23052c2ed42ff245729699b66750cdfa Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 16 May 2014 14:17:26 +0100 Subject: [PATCH] Protect against malformed URLs on Windows Update JarFile to correctly create system independent URLs to prevent potential URISyntaxExceptions when running on Windows. Fixes gh-836 --- .../boot/loader/jar/JarFile.java | 47 ++++++++++++++----- .../boot/loader/jar/JarFileTests.java | 2 - 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java index 78c417ce74..576f6c675e 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java @@ -365,11 +365,6 @@ public class JarFile extends java.util.jar.JarFile implements Iterable