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

System.getProperty("os.arch") reports process architecture, not OS.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • 6
    • other-libs
    • generic
    • generic

    Description

      In a 32-bit process running on a 64-bit OS, System.getProperty("os.arch") will report the architecture of the process. This is different to that of the actual OS, and contradicts the documentation.

      The use of that architecture value is usually to be reported in some user interface, so although not key to any JVM function, it can be misleading, and the value could be used to attempt to locate architecture-specific libraries.

      Attachments

        Activity

          People

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: