Use of the long type should be avoided in shared code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 14
    • Component/s: 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.)

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

              Created:
              Updated:
              Resolved: