Closed RevolvingMadness closed 5 months ago
I am sorry, I am not able to reproduce this problem. I don't think that we allow JavaScript class to extend Java class:
$ js
> class JavaScriptObject extends java.lang.Object {}
TypeError: protoParent is neither Object nor Null
at <js> :program(<shell>:1:1:0-49)
Hmm... I know GraalPy allows this but maybe there's a limitation.
It is not that important what GraalPy
does but what your test-case looks like exactly. It seems to be more complicated/slightly different than what you described because an attempt to define a JavaScript class that extends Java class results in TypeError
normally.
Ok
I have a Java class:
I have a JavaScript class:
This code gets ran in GraalJS:
For some reason it doesn't print
ExtendedFoo in JavaScript
. I don't want to useJava.extend
because it is very confusing to me.I would ask in a Discord but there isn't one so I made an issue.