source: trunk/src/gcc/libjava/testsuite/libjava.lang/Throw_2.java@ 1392

Last change on this file since 1392 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1// Check that NullPointerExceptions thrown from library code are
2// caught. This detects a number of failures that can be caused by
3// libgcj being built incorrectly. In particular, we ensure that a
4// SEGV in native (i.e. C++) code in libgcj is handled correctly.
5
6// Regrettably, we cannot guarantee that Double.parseDouble() will
7// always be native code, or that it will never be inlined. It could
8// be argued that we should add a method to libgcj that will be
9// guaranteed forever to be native, but I'm reluctant to add to the
10// library for the sole purpose of performing this test.
11
12public class Throw_2
13{
14 public static Throwable obj()
15 {
16 return null;
17 }
18
19 public static String str()
20 {
21 return null;