This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI:
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: tromey at redhat dot com
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 19:11:00 +0100
- Subject: Re: Patch: FYI:
- Sensitivity:
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