Skip to content

Commit

Permalink
🐛 fix replace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
guxingke committed Nov 22, 2019
1 parent d65efc1 commit d5b04b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gxk/jvm/VirtualMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void run(Args cmd) {
ClassLoader classLoader = new ClassLoader("boot", entry);
initVm(classLoader);

String mainClass = cmd.clazz.replace(".", EnvHolder.PATH_SEPARATOR);
String mainClass = cmd.clazz.replace(".", EnvHolder.FILE_SEPARATOR);
classLoader.loadClass(mainClass);

KClass clazz = Heap.findClass(mainClass);
Expand Down

0 comments on commit d5b04b9

Please sign in to comment.