mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
set java.protocol.handler.pkgs on Windows as well as Posix
Also, fix cut-and-paste error where we should have called fieldAddendum instead of methodAddendum.
This commit is contained in:
parent
1d9489a76e
commit
21a54cdf55
@ -1853,10 +1853,11 @@ EXPORT(JVM_InitProperties)(Thread* t, jobject properties)
|
||||
local::setProperty(t, method, *properties, "java.io.tmpdir", "/tmp");
|
||||
local::setProperty(t, method, *properties, "user.home", getenv("HOME"));
|
||||
local::setProperty(t, method, *properties, "user.dir", getenv("PWD"));
|
||||
#endif
|
||||
|
||||
local::setProperty(t, method, *properties, "java.protocol.handler.pkgs",
|
||||
"avian");
|
||||
|
||||
#endif
|
||||
local::setProperty
|
||||
(t, method, *properties, "java.home",
|
||||
static_cast<local::MyClasspath*>(t->m->classpath)->javaHome);
|
||||
@ -2776,7 +2777,7 @@ EXPORT(JVM_GetClassDeclaredFields)(Thread* t, jclass c, jboolean publicOnly)
|
||||
object runtimeData = getClassRuntimeData(t, jclassVmClass(t, *c));
|
||||
|
||||
set(t, runtimeData, ClassRuntimeDataPool,
|
||||
addendumPool(t, methodAddendum(t, vmField)));
|
||||
addendumPool(t, fieldAddendum(t, vmField)));
|
||||
}
|
||||
|
||||
object field = makeJfield
|
||||
|
Loading…
Reference in New Issue
Block a user