[pypy-svn] r56126 - pypy/branch/less-meta-instances/pypy/translator/jvm

niko at codespeak.net niko at codespeak.net
Fri Jun 27 18:24:22 CEST 2008


Author: niko
Date: Fri Jun 27 18:24:21 2008
New Revision: 56126

Modified:
   pypy/branch/less-meta-instances/pypy/translator/jvm/node.py
Log:
uncomment the code in the if which stores both the exception class
and value.  this fixes various tests in test_exception.



Modified: pypy/branch/less-meta-instances/pypy/translator/jvm/node.py
==============================================================================
--- pypy/branch/less-meta-instances/pypy/translator/jvm/node.py	(original)
+++ pypy/branch/less-meta-instances/pypy/translator/jvm/node.py	Fri Jun 27 18:24:21 2008
@@ -386,10 +386,10 @@
             if isinstance(link.last_exception, flowmodel.Variable):
                 # if the code that follows is interested in the class
                 # of the exception, extract it
-                #self.ilasm.dup_jtype(jPyPyThrowable)
+                self.ilasm.dup_jtype(jPyPyThrowable)
                 self.ilasm.store(link.last_exc_value)
-                #self.ilasm.emit(OBJECTGETCLASS)
-                #self.ilasm.store(link.last_exception)
+                self.ilasm.emit(OBJECTGETCLASS)
+                self.ilasm.store(link.last_exception)
             else:
                 self.ilasm.store(link.last_exc_value)
             self._setup_link(link)



More information about the Pypy-commit mailing list