JuliaInterop / JuliaInterop/JavaCall.jl
Allow multidimensional array inputs
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 125
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
How could we extend JavaCall to allow passing of multidimensional arrays? E.g.
public class Test {
public static double[][] testDoubleArray2D(double[][] array) {
return array;
}
}
The problem appears to be MethodError: no method matching jvalue(::Vector{Vector{Float64}}), but I'm having a hard time debugging the root cause of this issue.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported MethodError for jvalue(::Vector{Vector{Float64}}), then trace JavaCall's array-conversion path to find where nested Julia vectors are handled. Done means multidimensional arrays such as the shown double[][] input can be passed to Java and returned without the conversion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, julia
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100