List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:October 12 2007 1:20pm
Subject:Rev 182: Changed cast of the ByteArray to match the JNI spec. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel

------------------------------------------------------------
revno: 182
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Fri 2007-10-12 06:20:00 -0700
message:
  Changed cast of the ByteArray to match the JNI spec.
modified:
  java/ndbj.i                    ndbj.i-20070913223244-5938mztpztyn9sry-1
=== modified file 'java/ndbj.i'
--- a/java/ndbj.i	2007-10-05 19:46:08 +0000
+++ b/java/ndbj.i	2007-10-12 13:20:00 +0000
@@ -204,7 +204,7 @@
 %typemap(out) (BYTES)  { 
  
  $result = jenv->NewByteArray($1.theLength); 
- jenv->SetByteArrayRegion($result,0,$1.theLength,(const jbyte*) $1.theString);
+ jenv->SetByteArrayRegion($result,0,$1.theLength,(jbyte*) $1.theString);
  
 } 
 

Thread
Rev 182: Changed cast of the ByteArray to match the JNI spec. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor12 Oct