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

Use of the long type should be avoided in shared code

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      The long type has a size of 32bits on 32bit platforms and on Windows-64, but is 64bits on Unix 64bit platforms. Because its size depends on the platform its use should be avoided in shared code. However, there are a fair number of such uses, some of which result in bugs. (JDK-8235740 is one minor example.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: