Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8009267

Restore isAnnotationPresent methods in public AnnotatedElement implementations

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None
    • b82
    • generic
    • generic
    • Verified

    Description

      The change in JDK-8007113 made AnnotatedElement.isDefaultMethod a default method. This allowed numerous concrete implementation of the same logic to be removed. However, with the current behavior of javac in JDK 8 under sources levels before 8, this has de facto side effect of removing isAnnotationPresent from classes that implemented it in JDK 5/6/7, potentially causing compatibility issues for parties doing cross compiles *without* setting the bootclasspath as recommend. See

      http://mail.openjdk.java.net/pipermail/lambda-dev/2013-February/008387.html

      for one example.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: