diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-25 23:49:34 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-25 23:49:34 +0000 |
| commit | 40590a8a3f1faf15c72e48430565a338488ebb69 (patch) | |
| tree | 2d693d93733cdeb009933b6830d2718a4818ece9 /libjava | |
| parent | d0d268f2583fa95972d8ea2b937e8a93f5ae0bdd (diff) | |
| download | ppe42-gcc-40590a8a3f1faf15c72e48430565a338488ebb69.tar.gz ppe42-gcc-40590a8a3f1faf15c72e48430565a338488ebb69.zip | |
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
| -rw-r--r-- | libjava/ChangeLog | 5 | ||||
| -rw-r--r-- | libjava/jni.cc | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 22f85229320..e2c84d29dd6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2000-02-25 Tom Tromey <tromey@cygnus.com> + + * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on + `INTERPRETER'. + 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz> * java/net/URLConnection.java (initializeDateFormats): New diff --git a/libjava/jni.cc b/libjava/jni.cc index 42c0d07a099..92dbf3fb26e 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -1263,6 +1263,7 @@ _Jv_JNI_RegisterNatives (JNIEnv *env, jclass k, const JNINativeMethod *methods, jint nMethods) { +#ifdef INTERPRETER // For now, this only matters for interpreted methods. FIXME. if (! _Jv_IsInterpretedClass (k)) { @@ -1307,6 +1308,9 @@ _Jv_JNI_RegisterNatives (JNIEnv *env, jclass k, } return JNI_OK; +#else /* INTERPRETER */ + return JNI_ERR; +#endif /* INTERPRETER */ } static jint |

