1.1 --- a/rt/emul/compact/src/main/java/java/lang/InternalError.java Tue Feb 26 16:54:16 2013 +0100
1.2 +++ b/rt/emul/compact/src/main/java/java/lang/InternalError.java Sun Aug 10 05:55:55 2014 +0200
1.3 @@ -1,5 +1,5 @@
1.4 /*
1.5 - * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
1.6 + * Copyright (c) 1994, 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 @@ -32,8 +32,7 @@
1.11 * @author unascribed
1.12 * @since JDK1.0
1.13 */
1.14 -public
1.15 -class InternalError extends VirtualMachineError {
1.16 +public class InternalError extends VirtualMachineError {
1.17 private static final long serialVersionUID = -9062593416125562365L;
1.18
1.19 /**
1.20 @@ -47,9 +46,45 @@
1.21 * Constructs an <code>InternalError</code> with the specified
1.22 * detail message.
1.23 *
1.24 - * @param s the detail message.
1.25 + * @param message the detail message.
1.26 */
1.27 - public InternalError(String s) {
1.28 - super(s);
1.29 + public InternalError(String message) {
1.30 + super(message);
1.31 }
1.32 +
1.33 +
1.34 + /**
1.35 + * Constructs an {@code InternalError} with the specified detail
1.36 + * message and cause. <p>Note that the detail message associated
1.37 + * with {@code cause} is <i>not</i> automatically incorporated in
1.38 + * this error's detail message.
1.39 + *
1.40 + * @param message the detail message (which is saved for later retrieval
1.41 + * by the {@link #getMessage()} method).
1.42 + * @param cause the cause (which is saved for later retrieval by the
1.43 + * {@link #getCause()} method). (A {@code null} value is
1.44 + * permitted, and indicates that the cause is nonexistent or
1.45 + * unknown.)
1.46 + * @since 1.8
1.47 + */
1.48 + public InternalError(String message, Throwable cause) {
1.49 + super(message, cause);
1.50 + }
1.51 +
1.52 + /**
1.53 + * Constructs an {@code InternalError} with the specified cause
1.54 + * and a detail message of {@code (cause==null ? null :
1.55 + * cause.toString())} (which typically contains the class and
1.56 + * detail message of {@code cause}).
1.57 + *
1.58 + * @param cause the cause (which is saved for later retrieval by the
1.59 + * {@link #getCause()} method). (A {@code null} value is
1.60 + * permitted, and indicates that the cause is nonexistent or
1.61 + * unknown.)
1.62 + * @since 1.8
1.63 + */
1.64 + public InternalError(Throwable cause) {
1.65 + super(cause);
1.66 + }
1.67 +
1.68 }