On Thu, Jun 30, 2011 at 9:38 AM, Luiz Ribeiro <luizribeiro@...> wrote:
> I'm a GSoC student participating with the Gephi Consortium. My project
> is a scripting console plug-in for Gephi based on Jython 2.5 (with a
> few modifications to the grammar in order to add some new operators
> for manipulating graph structures).
> I've found a bug in Jython 2.5 that is quite critical to the
> functionality of my project. The bug happens when you try to set an
> attribute on the result of a operation between two objects, for
> example the following is output on Jython 2.5.2:
>>>> a = 1
>>>> (a + 2).attr = 10
> java.lang.VerifyError: (class: org/python/pycode/_pyx2, method: f$0
> signature: (Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;)
> Unable to pop operand off an empty stack
> The same problem occurs in Jython 2.5.1 and Jython 2.5.0. I've been
> trying to fix this issue with no success so far, maybe someone could
> give me a help with this?
For the record this is fixed in trunk, thanks for the detailed bug report Luiz!