bug in Jython 2.1? VerifyError
David Ripton
dripton at ripton.net
Wed Apr 30 10:42:03 EDT 2003
Irmen de Jong wrote:
> I've run into some trouble using Jython 2.1
> (jdk 1.4, 1.3, windows, linux).
>
> The following piece of Python code:
> ----
> def method():
> try:
> for dummy in [1,2,3]:
> try:
> return "result"
> except:
> pass
> finally:
> pass
>
> print method()
> ----
>
> fails to compile in Jython, I get this error:
>
> java.lang.VerifyError: java.lang.VerifyError: (class: test$py, method:
> method$1 signature:
> (Lorg/python/core/PyFrame;)Lorg/python/core/PyObject;) Register 3
> contains wrong type
>
>
> That piece of code above seems to be the minimal piece of code to trigger
> the problem. Something to do with nested try blocks and a loop?
>
> Can someone confirm this or help me? Thanks!
I can reproduce the problem, with Jython 2.1 on JDK 1.4.2 beta on Linux.
2.1 is pretty old -- you might want to try building Jython from CVS and
see if this has been fixed before reporting it.
If you don't get a better answer here, maybe try the jython-users or
jython-dev list.
--
David Ripton dripton at ripton.net
More information about the Python-list
mailing list