Browse Source

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
master
Stefan Bodewig 20 years ago
parent
commit
57f95d4cd2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/launch/Locator.java

+ 4
- 2
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -138,8 +138,10 @@ public final class Locator {
try { try {
path = decodeUri(uri); path = decodeUri(uri);
} catch (UnsupportedEncodingException exc) { } 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; return path;
} }


Loading…
Cancel
Save