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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • 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

            psandoz Paul Sandoz
            pbk Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: