diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-07 09:53:35 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-07 09:53:35 +0000 |
commit | 05386c2793555d5f4ec7962a3baa839f51392778 (patch) | |
tree | 54863e74aeb1fdbe5c963bf84d4a66b7b980da05 | |
parent | 36a618eb93238bb82d502ff2cb5501ed320d8d90 (diff) |
INTEGRATION: CWS sb33 (1.2.2); FILE MERGED
2005/06/29 13:54:07 sb 1.2.2.1: #i51091# Changed occurences of jobject in the jvmaccess API to void* to avoid different mangled C++ names for different JDKs.
-rw-r--r-- | jvmaccess/inc/jvmaccess/unovirtualmachine.hxx | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/jvmaccess/inc/jvmaccess/unovirtualmachine.hxx b/jvmaccess/inc/jvmaccess/unovirtualmachine.hxx index 235d52fc6..de93f487c 100644 --- a/jvmaccess/inc/jvmaccess/unovirtualmachine.hxx +++ b/jvmaccess/inc/jvmaccess/unovirtualmachine.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unovirtualmachine.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: obo $ $Date: 2005-06-17 09:20:20 $ + * last change: $Author: obo $ $Date: 2005-07-07 10:53:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -73,12 +73,6 @@ #include "rtl/ref.hxx" #endif -#if defined SOLAR_JAVA -#include "jni.h" -#else -typedef void * jobject; -#endif - namespace jvmaccess { class VirtualMachine; @@ -110,14 +104,18 @@ public: @param classLoader A local or global JNI reference, relative to the given virtualMachine, - to an appropriate UNO class loader instance. Must not be null. + to an appropriate UNO class loader instance. Must not be null. This + parameter should be of type jobject, not void *, but the exact + definition of jobject is different for different JDK versions, so that + the mangled C++ name of the constructor would depend on the JDK version + used at compile time. @exception CreationException Thrown in case creation fails (due to a JNI problem). */ UnoVirtualMachine( rtl::Reference< jvmaccess::VirtualMachine > const & virtualMachine, - jobject classLoader); + void * classLoader); /** Get the Java virtual machine wrapper. @@ -130,9 +128,12 @@ public: @return A global JNI reference to the UNO class loader. (The JNI reference must - not be deleted by client code.) Will never be null. + not be deleted by client code.) Will never be null. This should be of + type jobject, not void *, but the exact definition of jobject is + different for different JDK versions, so that the mangled C++ name of + the function would depend on the JDK version used at compile time. */ - jobject getClassLoader() const; + void * getClassLoader() const; private: UnoVirtualMachine(UnoVirtualMachine &); // not defined @@ -141,7 +142,7 @@ private: virtual ~UnoVirtualMachine(); rtl::Reference< jvmaccess::VirtualMachine > m_virtualMachine; - jobject m_classLoader; + void * m_classLoader; }; } |