JDK-6320987 : Tiger reflection methods missing @since tags
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-07
  • Updated: 2012-09-28
  • Resolved: 2005-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b53Fixed
Related Reports
Relates :  
Relates :  
Description
The annotation-related methods added to the core reflection classes in Tiger omitted their @since tags; these tags should be added.

Comments
SUGGESTED FIX src/share/classes/java/lang>sccs sccsdiff -r1.190 -r1.191 Class.java ------- Class.java ------- 1517c1517 < * <code>String</code> specifying the simple name the desired method. The --- > * <code>String</code> specifying the simple name of the desired method. The 2959c2959,2960 < * {@inheritDoc} --- > * @throws NullPointerException {@inheritDoc} > * @since 1.5 2970c2971,2972 < * {@inheritDoc} --- > * @throws NullPointerException {@inheritDoc} > * @since 1.5 2984c2986 < * {@inheritDoc} --- > * @since 1.5 2992c2994 < * {@inheritDoc} --- > * @since 1.5 src/share/classes/java/lang>sccs sccsdiff -r1.45 -r1.46 Package.java ------- Package.java ------- 359a360,363 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 363a368,371 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 365,366c373 < Class<? extends Annotation> annotationClass) < { --- > Class<? extends Annotation> annotationClass) { 369a377,379 > /** > * @since 1.5 > */ 373a384,386 > /** > * @since 1.5 > */ src/share/classes/java/lang/reflect>sccs sccsdiff -r1.3 -r1.4 AnnotatedElement.java ------- AnnotatedElement.java ------- 44c44 < * @param annotationType the Class object corresponding to the --- > * @param annotationClass the Class object corresponding to the 48c48 < * @throws NullPointerException if annotationType is null --- > * @throws NullPointerException if the given annotation class is null 51c51 < boolean isAnnotationPresent(Class<? extends Annotation> annotationType); --- > boolean isAnnotationPresent(Class<? extends Annotation> annotationClass); 57c57 < * @param annotationType the Class object corresponding to the --- > * @param annotationClass the Class object corresponding to the 61c61 < * @throws NullPointerException if annotationType is null --- > * @throws NullPointerException if the given annotation class is null 64c64 < <T extends Annotation> T getAnnotation(Class<T> annotationType); --- > <T extends Annotation> T getAnnotation(Class<T> annotationClass); src/share/classes/java/lang/reflect>sccs sccsdiff -r1.26 -r1.27 AccessibleObject.java ------- AccessibleObject.java ------- 167a168,171 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 171a176,179 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 173,174c181 < Class<? extends Annotation> annotationClass) < { --- > Class<? extends Annotation> annotationClass) { 177a185,187 > /** > * @since 1.5 > */ 181a192,194 > /** > * @since 1.5 > */ share/classes/java/lang/reflect>sccs sccsdiff -r1.51 -r1.52 Method.java ------- Method.java ------- 662a663,666 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 671a676,678 > /** > * @since 1.5 > */ src/share/classes/java/lang/reflect>sccs sccsdiff -r1.43 -r1.44 Field.java ------- Field.java ------- 984a985,988 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 993a998,1000 > /** > * @since 1.5 > */ src/share/classes/java/lang/reflect>sccs sccsdiff -r1.50 -r1.51 Constructor.java ------- Constructor.java ------- 576a577,580 > /** > * @throws NullPointerException {@inheritDoc} > * @since 1.5 > */ 585a590,592 > /** > * @since 1.5 > */
08-09-2005

EVALUATION Should be fixed.
07-09-2005