Restore isAnnotationPresent methods in public AnnotatedElement implementations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: