From 82b7b48311cb20aa5f7f51cb9b50d4e0b0956641 Mon Sep 17 00:00:00 2001 From: emc Date: Wed, 13 Nov 2013 15:48:21 -0500 Subject: [PATCH] 8026884: test for fix of JDK-8021398 does not have @bug tag 8028021: @since 1.8 missing for certain methods in java.lang.reflect.Method in generated api docs Summary: two documentation fixes Reviewed-by: darcy --- src/share/classes/java/lang/reflect/Executable.java | 2 ++ test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/share/classes/java/lang/reflect/Executable.java b/src/share/classes/java/lang/reflect/Executable.java index d033e7e93..95665706c 100644 --- a/src/share/classes/java/lang/reflect/Executable.java +++ b/src/share/classes/java/lang/reflect/Executable.java @@ -240,6 +240,7 @@ public abstract class Executable extends AccessibleObject * declared or implicitly declared or neither) for the executable * represented by this object. * + * @since 1.8 * @return The number of formal parameters for the executable this * object represents */ @@ -290,6 +291,7 @@ public abstract class Executable extends AccessibleObject * have unique names, or names that are legal identifiers in the * Java programming language (JLS 3.8). * + * @since 1.8 * @throws MalformedParametersException if the class file contains * a MethodParameters attribute that is improperly formatted. * @return an array of {@code Parameter} objects representing all diff --git a/test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java b/test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java index 2fcf0b892..5a2428751 100644 --- a/test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java +++ b/test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java @@ -23,6 +23,7 @@ /* * @test + * @bug 8021398 * @compile -parameters GetAnnotatedTypeTest.java * @run main GetAnnotatedTypeTest * @summary javac should generate method parameters correctly. -- GitLab