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

System.getProperty("os.name") reports Vista on Windows 7

XMLWordPrintable

    • b55
    • generic
    • windows_vista

        FULL PRODUCT VERSION :
        java version "1.6.0_14-ea"
        Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b03)
        Java HotSpot(TM) Client VM (build 14.0-b12, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows 7 Ultimate x64, build 7057


        A DESCRIPTION OF THE PROBLEM :
        The name of the operating system is reported by System.getProperty ("os.version") as "Windows Vista" but it must be "Windows 7".

        The same bug can be seen in recent builds of JDK 5.0 and JDK 6.0.



        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        OS = Windows 7
        ACTUAL -
        OS = Windows Vista

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        class OSVersion {
            public static void main(String[] args) {
                System.out.println ("OS =" + System.getProperty ("os.name"));
            }
        }
        ---------- END SOURCE ----------

              alanb Alan Bateman
              vita Vita Santrucek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: