diff --git a/jode/ChangeLog b/jode/ChangeLog index 37baf67..25f421f 100644 --- a/jode/ChangeLog +++ b/jode/ChangeLog @@ -1,9 +1,18 @@ +2001-04-09 Jochen Hoenicke + + * jode/bytecode/SearchPath.java: Bug fixes from Joe Bronkema: + (exists): Don't replace '/' with fileSeparator in original + filename; make a copy instead. + (getFile): likewise. + (isDirectory): likewise. + (listFiles): Reset fileNr when a new directory is read. + 2001-02-28 Jochen Hoenicke * acinclude.m4 (JODE_CHECK_CLASS): Changed "test -e" to "-f" since -e is not supported on all architectures (Solaris) and -f is more correct anyway. - Reported by Erik Modén . + Reported by Erik Modén. 2001-02-27 Jochen Hoenicke diff --git a/jode/THANKS b/jode/THANKS index 8dfdbcf..b95fa57 100644 --- a/jode/THANKS +++ b/jode/THANKS @@ -1,3 +1,5 @@ -Rolf Howarth for pascal indentaton style. -Martin Schmitz for finding many bugs in the obfuscator. -zzzeek +Joe Bronkema +Rolf Howarth for pascal indentaton style. +Erik Modén +Martin Schmitz for finding many bugs in the obfuscator. +zzzeek diff --git a/jode/jode/bytecode/SearchPath.java b/jode/jode/bytecode/SearchPath.java index 1fdc52e..a93e73a 100644 --- a/jode/jode/bytecode/SearchPath.java +++ b/jode/jode/bytecode/SearchPath.java @@ -279,7 +279,7 @@ public class SearchPath { } catch (SecurityException ex) { GlobalOptions.err.println ("Warning: Security exception while accessing " - +bases[i]+"."); + + bases[i] + "."); } } catch (MalformedURLException ex) { /* disable entry */ @@ -309,6 +309,10 @@ public class SearchPath { } public boolean exists(String filename) { + String localFileName = + (java.io.File.separatorChar != '/') + ? filename.replace('/', java.io.File.separatorChar) + : filename; for (int i=0; i