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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • tbd
    • Affects Version/s: 9, 11, 17, 24, 25
    • Component/s: 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?

            Assignee:
            Roger Riggs
            Reporter:
            Prasanta Sadhukhan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: