Kaydet (Commit) 02a23e3d authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS dba24c (1.12.34); FILE MERGED

2007/10/15 13:30:50 fs 1.12.34.1: during #i82222#: add env() accessor
üst f054c25c
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: Object.hxx,v $ * $RCSfile: Object.hxx,v $
* *
* $Revision: 1.13 $ * $Revision: 1.14 $
* *
* last change: $Author: hr $ $Date: 2007-11-02 12:13:06 $ * last change: $Author: ihi $ $Date: 2007-11-21 15:07:27 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -88,6 +88,14 @@ namespace connectivity ...@@ -88,6 +88,14 @@ namespace connectivity
JNIEnv* pEnv; JNIEnv* pEnv;
static void addRef(); static void addRef();
static void releaseRef(); static void releaseRef();
public:
JNIEnv& env() const
{
// according to the documentation of jvmaccess::VirtualMachine::AttachGuard, our env is never
// NULL, so why bothering with pointer checks?
return *pEnv;
}
}; };
//===================================================================== //=====================================================================
class java_lang_Class; class java_lang_Class;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment