[x3d-public] X3DJSAIL non-critical fix.

yottzumm at gmail.com yottzumm at gmail.com
Thu Apr 20 00:27:08 PDT 2017


In X3DConcreteNode.java, I think this URL needs to be commented out (see highlighted red):

protected final void setConcreteUSE(String newValue)
	{
		if (newValue == null)
			newValue = new String(); // Principle of Least Astonishment (POLA)
			https://en.wikipedia.org/wiki/Principle_of_least_astonishment
				
		// Check that newValue parameter meets naming requirements before assigning to scene graph
		if (!newValue.isEmpty() && !org.web3d.x3d.jsail.fields.SFStringObject.isNMTOKEN(newValue))
		{
			throw new org.web3d.x3d.sai.InvalidFieldValueException(getElementName() + " USE newValue=\"" + newValue +
					"\" has an illegal value, must provide a valid NMTOKEN name string.");
		}
		USE = newValue;
	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170420/87e65585/attachment.html>


More information about the x3d-public mailing list