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

Use of the long type should be avoided in shared code

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 14
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: