Issue486235
Created on 2001-11-27.22:53:03 by anonymous, last changed 2001-11-28.14:00:40 by pedronis.
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-11-27 22:53:03 | anonymous | create |
Created on 2001-11-27.22:53:03 by anonymous, last changed 2001-11-28.14:00:40 by pedronis.
Messages | |||
---|---|---|---|
msg486 (view) | Author: Nobody/Anonymous (nobody) | Date: 2001-11-27.22:53:03 | |
Jythonc/jython does not correctly generate the native java class for a Python class that is in a Python module of the same name that is in a Python package. If the module is of a different name, then jythonc correctly generates <package>.<module>.<class>. The error, when running the java code, is $ java -classpath jpywork:/usr/share/java/jython.jar Main Exception in thread "main" java.lang.ClassCastException: org.python.proxies.package.PythonClass$PythonClass$0 at Main.main(Main.java:9) this is using java 1.3.1 on debian with jython 2.1a3 and the attached source files (note the files in the tarball are not in a subdirectory). |
|||
msg487 (view) | Author: Samuele Pedroni (pedronis) | Date: 2001-11-27.23:36:40 | |
Logged In: YES user_id=61408 I have tried what you describe: a Python class that is in a Python module of the same name that is in a Python package. Works for me with current CVS. Unless an example is posted that still fails I will close the bug. |
|||
msg488 (view) | Author: Nobody/Anonymous (nobody) | Date: 2001-11-27.23:45:17 | |
Logged In: NO The original attachment failed, apparently, so I placed the tarball at http://www.cs.rit.edu/~dsh8290/example.tar.gz. If it really is fixed in CVS, that's great :-). |
|||
msg489 (view) | Author: Samuele Pedroni (pedronis) | Date: 2001-11-28.14:00:40 | |
Logged In: YES user_id=61408 Works with current CVS code. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-11-27 22:53:03 | anonymous | create |
Supported by Python Software Foundation,
Powered by Roundup