src/share/classes/java/dyn/InvokeDynamicBootstrapError.java

Print this page

        

*** 37,48 **** --- 37,51 ---- * The bootstrap method must have been declared during a class's initialization * by a call to one of the overloadings of * {@link Linkage#registerBootstrapMethod registerBootstrapMethod}. * * @author John Rose, JSR 292 EG + * @since 1.7 */ public class InvokeDynamicBootstrapError extends LinkageError { + private static final long serialVersionUID = 292L; + /** * Constructs an {@code InvokeDynamicBootstrapError} with no detail message. */ public InvokeDynamicBootstrapError() { super();
*** 61,72 **** /** * Constructs a {@code InvokeDynamicBootstrapError} with the specified * detail message and cause. * * @param s the detail message. ! * @param cause the cause. */ public InvokeDynamicBootstrapError(String s, Throwable cause) { ! super(s); ! this.initCause(cause); } } --- 64,74 ---- /** * Constructs a {@code InvokeDynamicBootstrapError} with the specified * detail message and cause. * * @param s the detail message. ! * @param cause the cause, may be {@code null}. */ public InvokeDynamicBootstrapError(String s, Throwable cause) { ! super(s, cause); } }