You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2005/02/05 13:31:35 UTC
cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Pool.java
mturk 2005/02/05 04:31:35
Modified: jni/java/org/apache/tomcat/jni Pool.java
Log:
Fix native call declaration for ByteBuffers
Revision Changes Path
1.4 +3 -3 jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Pool.java
Index: Pool.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Pool.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Pool.java 3 Feb 2005 07:48:32 -0000 1.3
+++ Pool.java 5 Feb 2005 12:31:35 -0000 1.4
@@ -119,7 +119,7 @@
* @param size The amount of memory to allocate
* @return The ByteBuffer with allocated memory
*/
- public static ByteBuffer alloc(long p, int size);
+ public static native ByteBuffer alloc(long p, int size);
/**
* Allocate a block of memory from a pool and set all of the memory to 0
@@ -127,6 +127,6 @@
* @param size The amount of memory to allocate
* @return The ByteBuffer with allocated memory
*/
- public static ByteBuffer calloc(long p, int size);
+ public static native ByteBuffer calloc(long p, int size);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org