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

System.getProperty("os.version") still returns 10.0 for windows 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 9, 11, 17, 24, 25
    • core-libs
    • None
    • generic
    • windows

      For both windows 10 and windows 11, System.getProperty("os.version") returns 10.0.
      Ideally it should return 11.0 or some version that should allow us to differentiate from windows 10.
      Or is there any other mechanism in Java to get the windows version differentiation?

            rriggs Roger Riggs
            psadhukhan Prasanta Sadhukhan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: