Tag: cws_src680_dba24c
User: fs      
Date: 2007-10-15 13:30:53+0000
Modified:
   dba/connectivity/source/inc/java/lang/Object.hxx

Log:
 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.12&r2=1.12.34.1
Delta lines:  +11 -3
--------------------
--- Object.hxx  2007-06-27 14:37:56+0000        1.12
+++ Object.hxx  2007-10-15 13:30:50+0000        1.12.34.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: Object.hxx,v $
  *
- *  $Revision: 1.12 $
+ *  $Revision: 1.12.34.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/06/27 14:37:56 $
+ *  last change: $Author: fs $ $Date: 2007/10/15 13:30:50 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -95,6 +95,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