[ 
https://issues.apache.org/jira/browse/LANG-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17538300#comment-17538300
 ] 

Will Herrmann commented on LANG-1686:
-------------------------------------

A {{getWindowsBuild()}} method or some other approach would be acceptable. Our 
use case is simply "if Windows version is X, do Y".

> Add Windows 11 detection to SystemUtils
> ---------------------------------------
>
>                 Key: LANG-1686
>                 URL: https://issues.apache.org/jira/browse/LANG-1686
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Will Herrmann
>            Priority: Major
>
> [SystemUtils|https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/SystemUtils.html]
>  contains static booleans such as {{{}IS_OS_WINDOWS_10{}}}.
> Now that Windows 11 has been out for a while, add {{{}IS_OS_WINDOWS_11{}}}.
> ----
> Note that [distinguishing Windows 11 from Windows 10 is 
> complicated|https://stackoverflow.com/questions/69373447/is-there-an-official-way-to-detect-windows-11],
>  so the current approach may not work for that.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to