Patch: FYI: jni.cc fixes

Ulrich Weigand Ulrich.Weigand@de.ibm.com
Mon Nov 4 10:56:00 GMT 2002


Tom Tromey wrote:

>        (array_from_valist): Correctly handle promotion for jint, jlong,
>        jfloat, and jdouble.

This causes a test case failure on s390-ibm-linux, because the assumption

>+      // Here we assume that sizeof(int) >= sizeof(jint), because we
>+      // use `int' when decoding the varargs.  Likewise for
>+      // long/jlong, float, and double.

is violated: jlong is a 64-bit type, while long is 32-bit ...


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com



More information about the Java-patches mailing list