From fb5b0570c3252d60297032b0d90ee90e528b6276 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 11 Aug 2009 09:20:49 -0600 Subject: [PATCH] replace slashes with dots in class name before passing it to ClassLoader.loadClass --- src/machine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/machine.cpp b/src/machine.cpp index 3f0925e707..38fcbe8d4e 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -2832,6 +2832,9 @@ resolveClass(Thread* t, object loader, object spec) object specString = makeString (t, "%s", &byteArrayBody(t, spec, 0)); + replace('/', '.', reinterpret_cast + (&byteArrayBody(t, stringData(t, specString), 0))); + class_ = t->m->processor->invoke(t, method, loader, specString); } }