[x3d-public] X3DPSAIL no need to wrap simple types

John Carlson yottzumm at gmail.com
Fri Jul 5 18:42:14 PDT 2019


The only thing I can figure is PyJNIus, JNI or Java’s search for interfaces is bad?  IDK. In one case, it finds interfaces, and in another, it doesn’t?  That would be an avenue to pursue.

John
Sent from Mail for Windows 10

From: John Carlson
Sent: Friday, July 5, 2019 8:13 PM
To: Brutzman, Donald (Don) (CIV)
Cc: X3D Graphics public mailing list
Subject: RE: X3DPSAIL no need to wrap simple types

Stack trace:

$ python wrapped.py
Traceback (most recent call last):
  File "wrapped.py", line 5, in <module>
    .setIS(minimal.ISObject())))
  File "jnius\jnius_export_class.pxi", line 760, in jnius.JavaMethod.__call__
  File "jnius\jnius_conversion.pxi", line 78, in jnius.populate_args
  File "jnius\jnius_utils.pxi", line 205, in jnius.check_assignable_from
jnius.JavaException: Invalid instance of 'org/web3d/x3d/jsail/X3DConcreteNode' passed for a 'org/web3d/x3d/sai/Core/X3DNode'

Sent from Mail for Windows 10

From: John Carlson
Sent: Friday, July 5, 2019 8:02 PM
To: Brutzman, Donald (Don) (CIV)
Cc: X3D Graphics public mailing list
Subject: RE: X3DPSAIL no need to wrap simple types


➢ I don’t have a solution for the “passed” problem, so I suggest we focus on that.  I have posted very simple examples which may be converted to java for testing.   You will want to checkout minimal.py from https://github.com/carlsonsolutiondesign/x3dpsail there is also a file there that uses it.   No setters or abstract types mentioned.

Here’s the python that uses minimal.py:

https://github.com/carlsonsolutiondesign/x3dpsail/blob/master/wrapped.py

Your assistance is welcome.  Call me on skype, if you are available.

John



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190705/f92c1fb6/attachment.html>


More information about the x3d-public mailing list