1.1 --- a/rt/emul/mini/src/main/java/java/lang/VirtualMachineError.java Tue Feb 26 16:54:16 2013 +0100
1.2 +++ b/rt/emul/mini/src/main/java/java/lang/VirtualMachineError.java Sun Aug 10 06:21:50 2014 +0200
1.3 @@ -1,5 +1,5 @@
1.4 /*
1.5 - * Copyright (c) 1995, 1997, Oracle and/or its affiliates. All rights reserved.
1.6 + * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1.8 *
1.9 * This code is free software; you can redistribute it and/or modify it
1.10 @@ -33,8 +33,9 @@
1.11 * @author Frank Yellin
1.12 * @since JDK1.0
1.13 */
1.14 -abstract public
1.15 -class VirtualMachineError extends Error {
1.16 +abstract public class VirtualMachineError extends Error {
1.17 + private static final long serialVersionUID = 4161983926571568670L;
1.18 +
1.19 /**
1.20 * Constructs a <code>VirtualMachineError</code> with no detail message.
1.21 */
1.22 @@ -46,9 +47,43 @@
1.23 * Constructs a <code>VirtualMachineError</code> with the specified
1.24 * detail message.
1.25 *
1.26 - * @param s the detail message.
1.27 + * @param message the detail message.
1.28 */
1.29 - public VirtualMachineError(String s) {
1.30 - super(s);
1.31 + public VirtualMachineError(String message) {
1.32 + super(message);
1.33 + }
1.34 +
1.35 + /**
1.36 + * Constructs a {@code VirtualMachineError} with the specified
1.37 + * detail message and cause. <p>Note that the detail message
1.38 + * associated with {@code cause} is <i>not</i> automatically
1.39 + * incorporated in this error's detail message.
1.40 + *
1.41 + * @param message the detail message (which is saved for later retrieval
1.42 + * by the {@link #getMessage()} method).
1.43 + * @param cause the cause (which is saved for later retrieval by the
1.44 + * {@link #getCause()} method). (A {@code null} value is
1.45 + * permitted, and indicates that the cause is nonexistent or
1.46 + * unknown.)
1.47 + * @since 1.8
1.48 + */
1.49 + public VirtualMachineError(String message, Throwable cause) {
1.50 + super(message, cause);
1.51 + }
1.52 +
1.53 + /**
1.54 + * Constructs an a {@code VirtualMachineError} with the specified
1.55 + * cause and a detail message of {@code (cause==null ? null :
1.56 + * cause.toString())} (which typically contains the class and
1.57 + * detail message of {@code cause}).
1.58 + *
1.59 + * @param cause the cause (which is saved for later retrieval by the
1.60 + * {@link #getCause()} method). (A {@code null} value is
1.61 + * permitted, and indicates that the cause is nonexistent or
1.62 + * unknown.)
1.63 + * @since 1.8
1.64 + */
1.65 + public VirtualMachineError(Throwable cause) {
1.66 + super(cause);
1.67 }
1.68 }