Welcome! Please see the About page for a little more info on how this works.

0 votes
in java.data by

Right now, there is no special handling for methods with primitive or array parameters.
This results in errors, when trying to use bean classes, that have such methods, with to-java and from-java.

The attached patch implements handling of primitives and arrays in the following manner:
- When the :default methods of from-java and to-java see an array type, they extend the multimethods for that array type.
Issue: Is Iterable the right interface to extend the multimethod to? Sequential also came to mind, but Iterable was used elsewhere.

  • Values that hit a numeric primitive slot (in to-java) are manually boxed, so they aren't passed as longs.

3 Answers

0 votes
by
0 votes
by
0 votes
by
Reference: https://clojure.atlassian.net/browse/JDATA-1 (reported by bendlas)
...