JDK-8007113 : Upgrade AnnotatedElement.isAnnotionPresent to be a default method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-01-29
  • Updated: 2017-05-17
  • Resolved: 2013-02-05
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 8
8 b77Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
While default methods are useful when adding new methods to interfaces, when convenience methods on existing interfaces are defined in terms of calling other methods of the interface, the existing methods can be turned into default methods.

This situation exists with AnnotatedElement.isAnnotionPresent and AnnotatedElement.getAnnotation.
Comments
SQE has looked at the fix and decided no additional tests are needed.
11-09-2013

verified in b85
16-04-2013

This change is essentially a refactoring. The JCK signature tests will test for the default-ness of the method.
05-02-2013