Browse Source

fixed deprecated API calls

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@526 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 14 years ago
parent
commit
243bceef5a
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      Readme.html
  2. 2
    2
      src/main/javassist/ClassPoolTail.java

+ 1
- 1
Readme.html View File

@@ -67,7 +67,7 @@ other editors.

<h2>How to run sample programs</h2>

<p>JDK 1.3 or later is needed.
<p>JDK 1.4 or later is needed.

<h3>0. If you have Apache Ant</h3>


+ 2
- 2
src/main/javassist/ClassPoolTail.java View File

@@ -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) {}

Loading…
Cancel
Save