8183175: Add explicit constructors to MalformedParameterizedTypeException
authordarcy
Wed, 28 Jun 2017 17:57:20 -0700 (2017-06-29)
changeset 45712 4f662a7e43a7
parent 45711 023d17106b07
child 45713 ee3f2cbfe23a
8183175: Add explicit constructors to MalformedParameterizedTypeException Reviewed-by: bpb
jdk/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java
--- a/jdk/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java	Wed Jun 28 17:23:37 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java	Wed Jun 28 17:57:20 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2017, 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
@@ -36,4 +36,21 @@
  */
 public class MalformedParameterizedTypeException extends RuntimeException {
     private static final long serialVersionUID = -5696557788586220964L;
+
+    /**
+     * Constructs a {@code MalformedParameterizedTypeException} with
+     * no detail message.
+     */
+    public MalformedParameterizedTypeException() {
+        super();
+    }
+
+    /**
+     * Constructs a {@code MalformedParameterizedTypeException} with
+     * the given detail message.
+     * @param message the detail message; may be {@code null}
+     */
+    public MalformedParameterizedTypeException(String message) {
+        super(message);
+    }
 }