[x3d-public] X3DJSAIL. Use of fields in ProtoInterface. addField() no longerworks.

yottzumm at gmail.com yottzumm at gmail.com
Tue Feb 14 20:08:00 PST 2017


Don,

Are you requiring the Java 8 syntax for X3DJSAIL application programmers?  Thanks!

John

Sent from Mail for Windows 10

From: yottzumm at gmail.com
Sent: Tuesday, February 14, 2017 11:00 PM
To: Don Brutzman; Roy Walmsley; X3D Graphics public mailing list
Subject: X3DJSAIL. Use of fields in ProtoInterface. addField() no longerworks.

Please provide example of calling setChildren() with multiple field objects, or perhaps allow addChildren().  Haven’t spent too much time on this, addChildren() may work.  Perhaps fix addField() to allow MFNode and SFNode, or remove from API??  Have validate call setChildren or addChildren for MFNodes and SFNodes?  Many choices here. Modify fieldObject to not throw an exception of addChildren() is called on fieldObject?


Abox.java (attached)
Exception in thread "main" org.web3d.x3d.sai.InvalidProtoException: field name='myShape' with type='MFNode' cannot have any simple-type value (newValue='').  Use setChildren() method instead.
        at org.web3d.x3d.jsail.Core.fieldObject.setValue(fieldObject.java:770)
        at org.web3d.x3d.jsail.Core.fieldObject.validate(fieldObject.java:1044)
        at org.web3d.x3d.jsail.Core.ProtoInterfaceObject.addField(ProtoInterfaceObject.java:466)
        at abox.main(abox.java:88)

I noted the change to the package structure.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170214/2179b142/attachment.html>


More information about the x3d-public mailing list