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
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user