User: ihi     
Date: 2007-11-21 15:07:30+0000
Modified:
   dba/connectivity/source/inc/java/lang/Object.hxx

Log:
 INTEGRATION: CWS dba24c (1.12.34); FILE MERGED
 2007/10/15 13:30:50 fs 1.12.34.1: during #i82222#: add env() accessor

File Changes:

Directory: /dba/connectivity/source/inc/java/lang/
==================================================

File [changed]: Object.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/inc/java/lang/Object.hxx?r1=1.13&r2=1.14
Delta lines:  +8 -0
-------------------
--- Object.hxx  2007-11-02 12:13:06+0000        1.13
+++ Object.hxx  2007-11-21 15:07:27+0000        1.14
@@ -88,6 +88,14 @@
                JNIEnv* pEnv;
                static void addRef();
                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;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to