diff -r d382dacfd73f -r 98bdfed1a6e9 rt/emul/compact/src/main/java/java/lang/InternalError.java --- a/rt/emul/compact/src/main/java/java/lang/InternalError.java Tue Feb 26 16:54:16 2013 +0100 +++ b/rt/emul/compact/src/main/java/java/lang/InternalError.java Sun Aug 10 05:55:55 2014 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,8 +32,7 @@ * @author unascribed * @since JDK1.0 */ -public -class InternalError extends VirtualMachineError { +public class InternalError extends VirtualMachineError { private static final long serialVersionUID = -9062593416125562365L; /** @@ -47,9 +46,45 @@ * Constructs an InternalError with the specified * detail message. * - * @param s the detail message. + * @param message the detail message. */ - public InternalError(String s) { - super(s); + public InternalError(String message) { + super(message); } + + + /** + * Constructs an {@code InternalError} with the specified detail + * message and cause.

Note that the detail message associated + * with {@code cause} is not automatically incorporated in + * this error's detail message. + * + * @param message the detail message (which is saved for later retrieval + * by the {@link #getMessage()} method). + * @param cause the cause (which is saved for later retrieval by the + * {@link #getCause()} method). (A {@code null} value is + * permitted, and indicates that the cause is nonexistent or + * unknown.) + * @since 1.8 + */ + public InternalError(String message, Throwable cause) { + super(message, cause); + } + + /** + * Constructs an {@code InternalError} with the specified cause + * and a detail message of {@code (cause==null ? null : + * cause.toString())} (which typically contains the class and + * detail message of {@code cause}). + * + * @param cause the cause (which is saved for later retrieval by the + * {@link #getCause()} method). (A {@code null} value is + * permitted, and indicates that the cause is nonexistent or + * unknown.) + * @since 1.8 + */ + public InternalError(Throwable cause) { + super(cause); + } + }