aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-04-12 16:58:08 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-04-12 16:58:08 +0000
commit243bceef5ab08307d8136a3c40b70f9fc6661100 (patch)
treeff4f0442aa1e54ebf62ad3906aa26ca120e6716d /src/main
parentaafe4b1a09df7f0c94668875d38dddf2f05f5822 (diff)
downloadjavassist-243bceef5ab08307d8136a3c40b70f9fc6661100.tar.gz
javassist-243bceef5ab08307d8136a3c40b70f9fc6661100.zip
fixed deprecated API calls
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@526 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main')
-rw-r--r--src/main/javassist/ClassPoolTail.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java
index d3d1a51f..aa1aefe7 100644
--- a/src/main/javassist/ClassPoolTail.java
+++ b/src/main/javassist/ClassPoolTail.java
@@ -57,7 +57,7 @@ final class DirClassPath implements ClassPath {
File f = new File(filename);
if (f.exists())
try {
- return f.getCanonicalFile().toURL();
+ return f.getCanonicalFile().toURI().toURL();
}
catch (MalformedURLException e) {}
catch (IOException e) {}
@@ -127,7 +127,7 @@ final class JarClassPath implements ClassPath {
try {
jarfile = new JarFile(pathname);
jarfileURL = new File(pathname).getCanonicalFile()
- .toURL().toString();
+ .toURI().toURL().toString();
return;
}
catch (IOException e) {}