From 8249846a75d3f44ab4cee83fb7fcb0943b2abdcc Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Tue, 22 Sep 2009 16:11:23 -0700 Subject: [PATCH] 6468534: (reflect) Exception types cannot be parameterized, rephrase getGenericExceptionTypes Reviewed-by: alanb --- jdk/src/share/classes/java/lang/reflect/Constructor.java | 4 ---- jdk/src/share/classes/java/lang/reflect/Method.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/jdk/src/share/classes/java/lang/reflect/Constructor.java b/jdk/src/share/classes/java/lang/reflect/Constructor.java index bdd158a3eb8..ae812ad72f5 100644 --- a/jdk/src/share/classes/java/lang/reflect/Constructor.java +++ b/jdk/src/share/classes/java/lang/reflect/Constructor.java @@ -275,10 +275,6 @@ public final * Returns an array of length 0 if the underlying method declares * no exceptions in its {@code throws} clause. * - *

If an exception type is a parameterized type, the {@code Type} - * object returned for it must accurately reflect the actual type - * parameters used in the source code. - * *

If an exception type is a type variable or a parameterized * type, it is created. Otherwise, it is resolved. * diff --git a/jdk/src/share/classes/java/lang/reflect/Method.java b/jdk/src/share/classes/java/lang/reflect/Method.java index 1c660f2dca8..fc9e467ae48 100644 --- a/jdk/src/share/classes/java/lang/reflect/Method.java +++ b/jdk/src/share/classes/java/lang/reflect/Method.java @@ -317,10 +317,6 @@ public final * Returns an array of length 0 if the underlying method declares * no exceptions in its {@code throws} clause. * - *

If an exception type is a parameterized type, the {@code Type} - * object returned for it must accurately reflect the actual type - * parameters used in the source code. - * *

If an exception type is a type variable or a parameterized * type, it is created. Otherwise, it is resolved. *