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

Consider default methods for additions to AnnotatedElement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b115
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The changes to the AnnotatedElement interface made under JDK-7154390 introduced some new methods to the interface. As such, it was a source incompatible change to any implementations of the interface that were not updated at the same time.

      While implementations outside of the JDK are expected to be rare, it would be more source compatible to provide default implementations in the interface declaration, even if the declarations just throw exceptions.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: