ReflectInvoke fails on sparc (patch)
Alexandre Oliva
kaffe@rufus.w3.org
20 Aug 1998 00:32:54 -0300
--Multipart_Thu_Aug_20_00:32:54_1998-1
Content-Type: text/plain; charset=US-ASCII
Hi!
A minor typo in Method.c caused ReflectInvoke to fail on sparc. A
patch that fixes this problem is attached.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
--Multipart_Thu_Aug_20_00:32:54_1998-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="method.diff"
Content-Transfer-Encoding: 7bit
1998-08-20 Alexandre Oliva <oliva@dcc.unicamp.br>
* libraries/clib/native/Method.c
(Java_java_lang_reflect_Method_invoke): assign integer returned by
static method to ret.i
Index: libraries/clib/native/Method.c
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/clib/native/Method.c,v
retrieving revision 1.10
diff -u -r1.10 Method.c
--- libraries/clib/native/Method.c 1998/06/27 06:51:56 1.10
+++ libraries/clib/native/Method.c 1998/08/20 03:27:56
@@ -245,7 +245,7 @@
case 'J': ret.j = CallStaticTypeMethodA(Long); break;
case 'F': ret.f = CallStaticTypeMethodA(Float); break;
case 'D': ret.d = CallStaticTypeMethodA(Double); break;
- case 'I': ret.j = CallStaticTypeMethodA(Int); break;
+ case 'I': ret.i = CallStaticTypeMethodA(Int); break;
case 'S': ret.s = CallStaticTypeMethodA(Short); break;
case 'B': ret.b = CallStaticTypeMethodA(Byte); break;
case 'Z': ret.z = CallStaticTypeMethodA(Boolean); break;
--Multipart_Thu_Aug_20_00:32:54_1998-1--