jdk/src/share/classes/java/dyn/InvokeDynamicBootstrapError.java
changeset 7055 bf14f05b3dcd
parent 7051 1c545d70a157
parent 6848 1a454f5b7209
child 7562 a0ad195efe2c
--- a/jdk/src/share/classes/java/dyn/InvokeDynamicBootstrapError.java	Tue Sep 14 01:42:03 2010 -0700
+++ b/jdk/src/share/classes/java/dyn/InvokeDynamicBootstrapError.java	Thu Nov 04 16:09:49 2010 -0700
@@ -35,8 +35,11 @@
  * of the correct {@linkplain MethodType method type}.
  *
  * @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.
      */
@@ -59,10 +62,9 @@
      * 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);
     }
 }