able to complete normally. From Eric Blake.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58765
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
{
static
{
- throw new NullPointerException("nope");
+ // Static initializers must be able to complete normally.
+ if (true)
+ throw new NullPointerException("nope");
}
public static int val ()