JavaDoc for sun.misc.unsafe objectFieldOffset(Field f) and staticFieldOffset(Field f) are interchanged

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: core-libs

      The JavaDoc in sun.misc.unsafe for objectFieldOffset(Field f) says

         Report the location of a given static field, in conjunction with {@link #staticFieldBase}.

      and the JavaDoc for staticFieldOffset(Field f) says

         Report the location of a given field in the storage allocation of its class.

      Those seem like they are interchanged. It looks like the rest of

            Assignee:
            Paul Sandoz
            Reporter:
            Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: