Message4822

Author rhudson@annapmicro.com
Recipients rhudson@annapmicro.com
Date 2009-06-18.20:46:09
SpamBayes Score 1.28e-05
Marked as misclassified No
Message-id <1245357970.39.0.305099027996.issue1382@psf.upfronthosting.co.za>
In-reply-to
Content
I get an ArrayStoreException while doing a __cmp__ operation. It occurs
in PyType.java at 1073:

                    where[0] = t;

While the 'where' parameter is declared as a PyObject[], over in
PyObjectDerived at line 770 it is created as an array of PyType[] and
passed to lookup_where on the following line.

        PyType[]where_type=new PyType[1];
        PyObject impl=self_type.lookup_where("__cmp__",where_type);

The exception indicates that the actual type being assigned is PyClass.
PyClass is a PyObject, but not a PyType which appears to be the cause of
the exception.
History
Date User Action Args
2009-06-18 20:46:10rhudson@annapmicro.comsetrecipients: + rhudson@annapmicro.com
2009-06-18 20:46:10rhudson@annapmicro.comsetmessageid: <1245357970.39.0.305099027996.issue1382@psf.upfronthosting.co.za>
2009-06-18 20:46:10rhudson@annapmicro.comlinkissue1382 messages
2009-06-18 20:46:09rhudson@annapmicro.comcreate