]> source.dussan.org Git - javassist.git/commitdiff
fixed deprecated API calls
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 12 Apr 2010 16:58:08 +0000 (16:58 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 12 Apr 2010 16:58:08 +0000 (16:58 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@526 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

Readme.html
src/main/javassist/ClassPoolTail.java

index 3b839644582c4dd01b0af45b4cd477056c27c828..fb37ced86a0162722740f8fcffb8c04e1628c3a1 100644 (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>
 
index d3d1a51f4a716cf9ea1959a8256b1ffd1e45278e..aa1aefe7a8eeaf828ce0ae8fdc2817bda7d4f466 100644 (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) {}