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

Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided

    Details

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

      Description

      The replacement for Reflection.getCallerClass has non-small API and implementation work (JDK-8020968). Due to the late game for JDK 8, adding a new supported API at this time doesn't allow adequate time to get community and existing frameworks depending on Reflection.getCallerClass to try out and give feedback.

      Propose to restore sun.reflect.Reflection.getCallerClass in jdk8 and define a proper SE API in JDK9.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: