Author jonathan.simmonds
Recipients jonathan.simmonds
Date 2018-05-23.13:17:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As of Jython 2.7.1, adding a list containing non-PyObjects to another will result in a "java.lang.ClassCastException: <java type> cannot be cast to org.python.core.PyObject". The attached reproducer illustrates the problem - it works in 2.7.0 but not in 2.7.1+, instead failing on the final line.

This appears to be the result of a simple refactor ( rather than an intentional change: PyList.add takes Objects and performs the java2py wrapping itself, so attempting to cast the list to PyObjects before this point is incorrect.
Date User Action Args
2018-05-23 13:17:23jonathan.simmondssetmessageid: <>
2018-05-23 13:17:23jonathan.simmondssetrecipients: + jonathan.simmonds
2018-05-23 13:17:23jonathan.simmondslinkissue2688 messages
2018-05-23 13:17:23jonathan.simmondscreate