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

Offset of union fields are not calculated correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: core-libs
    • Labels:

      Description

      Giving a simple C union,

      union {
      short s,
      int i,
      long l
      }

      The address of s, i and l are expected to be the same.

        Attachments

          Activity

            People

            • Assignee:
              henryjen Henry Jen
              Reporter:
              henryjen Henry Jen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: