diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-11 11:53:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-11 13:09:01 +0100 |
commit | 36af1d315cc4dbdf3000a1de4756f94d1c410683 (patch) | |
tree | 3296c55924f89a987cffd11f7dc97b20ee714314 /bridges/source | |
parent | c8314441109548ab6ed12a3cc3cdbee6d1fd8eaf (diff) |
better documentation
Change-Id: Ife9a98cfe2166ccc7aac3904c7be4ea71443d857
Diffstat (limited to 'bridges/source')
-rw-r--r-- | bridges/source/jni_uno/jni_bridge.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx index 9f0648a331c9..ea28c5d536a7 100644 --- a/bridges/source/jni_uno/jni_bridge.cxx +++ b/bridges/source/jni_uno/jni_bridge.cxx @@ -469,6 +469,10 @@ void SAL_CALL java_env_disposing(uno_Environment * env) { SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * java_env ) SAL_THROW_EXTERN_C() { + // JavaComponentLoader::getJavaLoader (in + // stoc/source/javaloader/javaloader.cxx) stores a + // jvmaccess::UnoVirtualMachine pointer into java_env->pContext; replace it + // here with a pointer to a full JniUnoEnvironmentData: auto * envData = new jni_uno::JniUnoEnvironmentData( static_cast<jvmaccess::UnoVirtualMachine *>(java_env->pContext)); java_env->pContext = envData; |