Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassCastException #414

Open
Meqy opened this issue May 25, 2020 · 0 comments
Open

java.lang.ClassCastException #414

Meqy opened this issue May 25, 2020 · 0 comments

Comments

@Meqy
Copy link

Meqy commented May 25, 2020

I get this error when I try to use the method
'java.lang.ClassCastException: php.runtime.ext.support.compile.CompileFunction$Method cannot be cast to php.runtime.reflection.CompileMethodEntity$CompileMethod$Method' in res://php/gui/UXNodeWrapper.php

`public class PythonObject extends BaseWrapper {
public PythonObject(Environment env, T wrappedObject) {
super(env, wrappedObject);
}
public PythonObject(Environment env, ClassEntity clazz) {
super(env, clazz);
}

public T getWrappedObject(){
    return super.getWrappedObject();
}

@Reflection.Signature
public PyObject __call__(){
    return getWrappedObject().__call__();
}

@Reflection.Signature
public PyObject __call__(Object... args) {
    return getWrappedObject().__call__(Py.javas2pys(args));
}

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant