tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Pool.java
Date Sat, 05 Feb 2005 12:31:35 GMT
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


Mime
View raw message