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

Use of the long type should be avoided in shared code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 14
    • hotspot
    • b12

      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.)

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

              Created:
              Updated:
              Resolved: