mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
replace slashes with dots in class name before passing it to ClassLoader.loadClass
This commit is contained in:
parent
d868815737
commit
fb5b0570c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user