Patch: FYI:

Ulrich Weigand Ulrich.Weigand@de.ibm.com
Tue Dec 17 10:11:00 GMT 2002


Tom Tromey wrote:

>        * include/win32.h (_Jv_platform_solib_prefix): New define.
>        (_Jv_platform_solib_suffix): Likewise.
>        * include/posix.h (_Jv_platform_solib_prefix): New define.
>        (_Jv_platform_solib_suffix): Likewise.
>        * java/lang/natRuntime.cc: Include StackTrace.h.
>        (_load): Use findLibrary and new platform defines.
>        (nativeGetLibname): Use new platform defines.
>
>
>+      gnu::gcj::runtime::StackTrace *t = new
gnu::gcj::runtime::StackTrace(10);
>+      for (int i = 0; i < 10; ++i)
>+       {
>+         jclass klass = t->classAt(i);
>+         if (klass != NULL)

This does not catch an ArrayOutOfBounds exception thrown by classAt
(e.g. because the target does not define HAVE_BACKTRACE like on s390),
which causes initialization failures due to uncaught exceptions.

This results in a number of libjava testsuite regressions on s390 and
s390x.  Both CVS head and 3.3 branch are affected, it seems.


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