[x3d-public] Sample X3D Python API; examples publishedforcontinuing improvement
Brutzman, Donald (Don) (CIV)
brutzman at nps.edu
Mon Apr 22 20:57:39 PDT 2019
Our messages crossed but are quite similar... we might have the problem surrounded I hope...
On 4/22/2019 8:45 PM, John Carlson wrote:
> This is a more broad problem than pyjnius, and is likely a Java problem that is letting things past the interface contract. Okay, I will try to explain what the bug is:
>
> setDEF in X3DViewpointNode returns an X3DViewpointNode (interface)
>
> public X3DViewpointNode setDEF(String newValue);
[...]
Please make sure that you have _no_ references to abstract class X3DViewpointNode anywhere in your code.
The Java source for concrete class ViewpointObject specifically overrides its abstract parent superclass with an @Override annotation. Inside X3DJSAIL the setDEF() method correctly returns type ViewpointObject.
If we remove all references to X3D*Node abstract classes everywhere and the problem still occurs, then
- perhaps not all of those definitions are removed, or
- perhaps an old file in the path is somehow visible, or
- we have isolated a bug in Pyjnius that we can ask them to fix.
Good luck sir.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list