[ 
https://issues.apache.org/jira/browse/LANG-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved LANG-1793.
-----------------------------------
    Fix Version/s: 3.20.1
       Resolution: Fixed

[~zhongxin] 

PR merged. Thank you. Please review git master or snapshot builds.

Do you see any other documentation issues?

 

> Incorrect Javadoc description in CharUtils.isAsciiAlphanumeric()
> ----------------------------------------------------------------
>
>                 Key: LANG-1793
>                 URL: https://issues.apache.org/jira/browse/LANG-1793
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.20.0
>            Reporter: Zhongxin Yan
>            Priority: Major
>             Fix For: 3.20.1
>
>         Attachments: image-2025-11-25-23-58-04-347.png
>
>
> The Javadoc of the {{isAsciiAlphanumeric}} method in {{CharUtils}} contains 
> an incorrect description.
> The first sentence currently states:
> {quote}“Tests whether the character is ASCII 7 bit numeric.”
> {quote}
> However, the actual implementation checks whether the character is 
> {*}alphanumeric{*}, meaning it returns {{true}} for both:
>  * alphabetic characters ({{{}A–Z{}}}, {{{}a–z{}}}), and
>  * numeric characters ({{{}0–9{}}}).
> This mismatch between the Javadoc and the method behavior is misleading and 
> may cause confusion for API users. The documentation should be updated to 
> reflect that the method checks for ASCII alphanumeric characters, not numeric 
> characters only.
> https://github.com/apache/commons-lang/pull/1501
> !image-2025-11-25-23-58-04-347.png|width=472,height=347!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to