VarHandle for receiver's superclass instance fields fails describeConstable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 25
    • Component/s: core-libs
    • None

      Consider:

      class A { int a; } class B extends A {}

      The VarHandle created by MethodHandles.Lookup.findVarHandle(B.class, "a", int.class) fails describeConstable with an InternalError instead of returning a VarHandleDesc.

      Credit to [~mcimadamore] for discovering this issue.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: