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

Restore isAnnotationPresent methods in public AnnotatedElement implementations

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: