JavaCall.jl icon indicating copy to clipboard operation
JavaCall.jl copied to clipboard

Ptr returned for double[][] return type

Open jgbos opened this issue 10 years ago • 1 comments

When I do an example method call where the return type is double[][], I get the following output

  julia> jcall(obj, "getDoubles", Array{Array{jdouble, 1}, 1}, ())
  Ptr{Void} @0x0000000008ff5340

jgbos avatar Sep 03 '15 14:09 jgbos

As stated in the documentation, multidimensional arrays are currently not supported very well in JavaCall.

Basically, there needs to be convert_result function for 2D arrays, similar to the existing one for 1D arrays. If you need an immediate workaround, you could call the underlying JNI accessor routines directly.

aviks avatar Sep 04 '15 02:09 aviks