aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-11-03 01:30:28 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-11-03 01:30:28 +0000
commit863d115f333ca5cd0830f4c250d77d87e2d83ef0 (patch)
tree23fd7cd9326a326050006fae6d42660d4db57399 /libjava/testsuite
parentafa54b4c0934c5a5c8a72b2ea15bd4adb00cf6bb (diff)
downloadgcc-863d115f333ca5cd0830f4c250d77d87e2d83ef0.zip
gcc-863d115f333ca5cd0830f4c250d77d87e2d83ef0.tar.gz
gcc-863d115f333ca5cd0830f4c250d77d87e2d83ef0.tar.bz2
initexc.java (fail): Static initializers must be able to complete normally.
* libjava.lang/initexc.java (fail): Static initializers must be able to complete normally. From Eric Blake. From-SVN: r58765
Diffstat (limited to 'libjava/testsuite')
-rw-r--r--libjava/testsuite/ChangeLog3
-rw-r--r--libjava/testsuite/libjava.lang/initexc.java4
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 64f59c5..fc5627b 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2002-11-02 Tom Tromey <tromey@redhat.com>
+ * libjava.lang/initexc.java (fail): Static initializers must be
+ able to complete normally. From Eric Blake.
+
* libjava.lang/initexc.java: New file.
* libjava.lang/initexc.out: New file.
diff --git a/libjava/testsuite/libjava.lang/initexc.java b/libjava/testsuite/libjava.lang/initexc.java
index 968009e..eda24ab 100644
--- a/libjava/testsuite/libjava.lang/initexc.java
+++ b/libjava/testsuite/libjava.lang/initexc.java
@@ -4,7 +4,9 @@ public class initexc
{
static
{
- throw new NullPointerException("nope");
+ // Static initializers must be able to complete normally.
+ if (true)
+ throw new NullPointerException("nope");
}
public static int val ()