From 57f95d4cd27abbd37f514c49414101048834b28f Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 29 Nov 2005 04:58:45 +0000 Subject: [PATCH] fix build for JDK1.4 and earlier git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@349648 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/launch/Locator.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/launch/Locator.java b/src/main/org/apache/tools/ant/launch/Locator.java index 071b844c4..c9951e494 100644 --- a/src/main/org/apache/tools/ant/launch/Locator.java +++ b/src/main/org/apache/tools/ant/launch/Locator.java @@ -138,8 +138,10 @@ public final class Locator { try { path = decodeUri(uri); } catch (UnsupportedEncodingException exc) { - // not sure whether this is clean, but this method is declared not to throw exceptions. - throw new IllegalStateException("Could not convert URI to path", exc); + // not sure whether this is clean, but this method is + // declared not to throw exceptions. + throw new IllegalStateException("Could not convert URI to path: " + + exc.getMessage()); } return path; }