Author: Antonio Cuni <[email protected]>
Branch: ootype-rerased
Changeset: r45845:21953bca75cb
Date: 2011-07-21 23:55 +0200
http://bitbucket.org/pypy/pypy/changeset/21953bca75cb/
Log: fix the signature of the oo{box,unbox}_int java methods
diff --git a/pypy/translator/jvm/typesystem.py
b/pypy/translator/jvm/typesystem.py
--- a/pypy/translator/jvm/typesystem.py
+++ b/pypy/translator/jvm/typesystem.py
@@ -963,8 +963,8 @@
PYPYRUNTIMENEW = Method.s(jPyPy, 'RuntimeNew', (jClass,), jObject)
PYPYSTRING2BYTES = Method.s(jPyPy, 'string2bytes', (jString,), jByteArray)
PYPYARRAYTOLIST = Method.s(jPyPy, 'array_to_list', (jObjectArray,),
jArrayList)
-PYPYBOXINT = Method.s(jPyPy, 'box_integer', (jInt,), jIntegerClass)
-PYPYUNBOXINT = Method.s(jPyPy, 'unbox_integer', (jIntegerClass,),
jInt)
+PYPYBOXINT = Method.s(jPyPy, 'box_integer', (jInt,), jObject)
+PYPYUNBOXINT = Method.s(jPyPy, 'unbox_integer', (jObject,), jInt)
PYPYOOPARSEFLOAT = Method.v(jPyPy, 'ooparse_float', (jString,), jDouble)
OBJECTGETCLASS = Method.v(jObject, 'getClass', (), jClass)
CLASSGETNAME = Method.v(jClass, 'getName', (), jString)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit