From c1b184b5cdff95eeccab6021c63f1bbeab2a5317 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 1998 11:16:08 +0000 Subject: [PATCH] --cp option, / instead of File.separatorChar git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@122 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/ImportHandler.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jode/jode/decompiler/ImportHandler.java b/jode/jode/decompiler/ImportHandler.java index 68be986..743a1f3 100644 --- a/jode/jode/decompiler/ImportHandler.java +++ b/jode/jode/decompiler/ImportHandler.java @@ -30,9 +30,9 @@ public class JodeEnvironment { SearchPath classPath; - JodeEnvironment() { + JodeEnvironment(String path) { Type.setEnvironment(this); - classPath = new SearchPath(System.getProperty("java.class.path")); + classPath = new SearchPath(path); imports = new Hashtable(); /* java.lang is always imported */ imports.put("java.lang.*", new Integer(Integer.MAX_VALUE)); @@ -40,9 +40,7 @@ public class JodeEnvironment { public java.io.InputStream getClassStream(Class clazz) throws java.io.IOException { - return classPath.getFile(clazz.getName(). - replace('.', java.io.File.separatorChar) - +".class"); + return classPath.getFile(clazz.getName().replace('.', '/') + ".class"); } /**