replace slashes with dots in class name before passing it to ClassLoader.loadClass

This commit is contained in:
Joel Dice 2009-08-11 09:20:49 -06:00
parent d868815737
commit fb5b0570c3

View File

@ -2832,6 +2832,9 @@ resolveClass(Thread* t, object loader, object spec)
object specString = makeString
(t, "%s", &byteArrayBody(t, spec, 0));
replace('/', '.', reinterpret_cast<char*>
(&byteArrayBody(t, stringData(t, specString), 0)));
class_ = t->m->processor->invoke(t, method, loader, specString);
}
}