On Friday 08 September 2006 02:58, Tom Tromey wrote: > >>>>> "Raif" == Raif S Naffah <[EMAIL PROTECTED]> writes: > > Raif> i'm attaching an OC$.java source and the generated header using > Raif> gcjh. same behaviour --the dollar symbol is replaced by its > Raif> unicode codepoint. > > Could you send the header file that the JDK's javah creates for this > class? I'm curious about that.
i'm attaching three files, the first (with one underscore suffix) was generated by 1.4.2 with a -d option, and the second (with two underscores suffix) was generated with 1.5.0. the third file was generated with gcjh (4.1.1 20060525 (Red Hat 4.1.1-1)). in all files the native method name has the dollar symbol replaced with its unicode codepoint equivalent. cheers; rsn
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class OC_ */
#ifndef _Included_OC_
#define _Included_OC_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: OC_
* Method: natInit
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_OC_00024_natInit
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class OC__ */
#ifndef _Included_OC__
#define _Included_OC__
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: OC__
* Method: natInit
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_OC_00024_natInit
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
/* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __OC$__
#define __OC$__
#include <jni.h>
#ifdef __cplusplus
extern "C"
{
#endif
JNIEXPORT void JNICALL Java_OC_00024_natInit (JNIEnv *env, jobject);
#ifdef __cplusplus
}
#endif
#endif /* __OC$__ */
pgpOiv2dSt3WW.pgp
Description: PGP signature

