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

VarHandles.getStaticFieldFromBaseAndOffset should get the receiver type from VarHandle

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 20
    • 21
    • core-libs
    • None

    Description

      A spin off from JDK-8294278. The implementation of VarHandle::describeConstable for static fields uses VarHandles.getStaticFieldFromBaseAndOffset to map a base/offset/fieldType to a static Field. This assumes that the location of a static field returned by Unsafe.staticFieldBase is a Class object. It may need to be re-examined for this code to be usable with other VM implementations.

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: