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

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

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: