While tracking down issues with my previous post to do with UnmodifiableListSet I solved the issue by creating a library. The final library was so simple I went back to try to find out why it wouldn't work with a JavaObject.
The Object in question UnmodifiableListSet has two toArray methods (see docs here) one requires an Object[] array and the other requires no parameter.
Once I found the documentation I got it working with JavaObject by passing an Object array of size 0.
The method that requires no parameter always gives a null pointer error (although it works perfectly in the java library).
Is it possible that the JavaObject lib is confusing the two methods and passing null to the method that requires an object array? Or have I totally missed the mark?
Example app attached.
The Object in question UnmodifiableListSet has two toArray methods (see docs here) one requires an Object[] array and the other requires no parameter.
Once I found the documentation I got it working with JavaObject by passing an Object array of size 0.
The method that requires no parameter always gives a null pointer error (although it works perfectly in the java library).
Is it possible that the JavaObject lib is confusing the two methods and passing null to the method that requires an object array? Or have I totally missed the mark?
Example app attached.
Attachments
Last edited: