tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-frederic Clere <jfcl...@telefonica.net>
Subject Re: cvs commit: jakarta-tomcat-connectors/jni/native/include tcn.h
Date Sun, 28 Aug 2005 18:10:54 GMT
Now I am not sure that the right correction:
- sablevm uses short names first so it should work without the 
additional __J
- tracing in sableVM shows that the JNI_OnLoad fails.

That probably a classloader problem (org/apache/tomcat/jni/FileInfo is 
not found but java/lang/String is found), any hint?

Cheers

Jean-Frederic

jfclere@apache.org wrote:

>jfclere     2005/08/27 09:14:50
>
>  Modified:    jni/native/include tcn.h
>  Log:
>  Add support for sableVM.
>  
>  Revision  Changes    Path
>  1.31      +6 -1      jakarta-tomcat-connectors/jni/native/include/tcn.h
>  
>  Index: tcn.h
>  ===================================================================
>  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
>  retrieving revision 1.30
>  retrieving revision 1.31
>  diff -u -r1.30 -r1.31
>  --- tcn.h	12 Jul 2005 14:56:10 -0000	1.30
>  +++ tcn.h	27 Aug 2005 16:14:50 -0000	1.31
>  @@ -100,8 +100,13 @@
>   #define TCN_IMPARGS     JNIEnv *e, jobject o, void *sock
>   #define TCN_IMPCALL(X)  e, o, X->opaque
>   
>  +#ifdef HAVE_SABLEVM
>  +#define TCN_IMPLEMENT_CALL(RT, CL, FN)  \
>  +    JNIEXPORT RT JNICALL Java_org_apache_tomcat_jni_##CL##_##FN##__J
>  +#else
>   #define TCN_IMPLEMENT_CALL(RT, CL, FN)  \
>       JNIEXPORT RT JNICALL Java_org_apache_tomcat_jni_##CL##_##FN
>  +#endif
>   
>   #define TCN_IMPLEMENT_METHOD(RT, FN)    \
>       static RT method_##FN
>  
>  
>  
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message