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

Print this page

        

@@ -37,12 +37,15 @@
  * 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,12 +64,11 @@
     /**
      * Constructs a {@code InvokeDynamicBootstrapError} with the specified
      * detail message and cause.
      *
      * @param s the detail message.
-     * @param cause the cause.
+     * @param cause the cause, may be {@code null}.
      */
     public InvokeDynamicBootstrapError(String s, Throwable cause) {
-        super(s);
-        this.initCause(cause);
+        super(s, cause);
     }
 }