VarHandles.getStaticFieldFromBaseAndOffset should get the receiver type from VarHandle

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 20
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: