[x3d-public] I don't have a test case for this. This X3DJSAIL method looks problematic
John Carlson
yottzumm at gmail.com
Fri Mar 22 06:08:00 PDT 2024
Here's the file in question:
www.web3d.org/x3d/stylesheets/java/src/org/web3d/x3d/jsail/fields/MFNode.java
On sourceforge.
On Fri, Mar 22, 2024 at 8:03 AM John Carlson <yottzumm at gmail.com> wrote:
> /**
> * Get the current value of this MFNode by copying it into the
> valueDestination array, leaving the current object unchanged.
> * @param valueDestination The array to be filled in with current
> field values.
> */
> /* @Override */
> public void getValue(org.web3d.x3d.sai.Core.X3DNode[]
> valueDestination)
> {
> valueDestination = MFNode;
> }
>
> Comment says to do an array copy, but I don't currently know how to do
> that. There are problems if valueDestination is smaller than MFNode, but I
> guess one can allocate the array outside of the method.
>
> I believe Java is pass by value, so the assignment is ineffective.
>
> I can research this and come up with a solution. Meanwhile, I will be
> using getPrimitiveValue().
>
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240322/b1dc7683/attachment.html>
More information about the x3d-public
mailing list