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

VarHandles.getStaticFieldFromBaseAndOffset should get the receiver type from VarHandle

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: