You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2021/01/06 16:46:00 UTC

[jira] [Commented] (LANG-1631) Add short circuits in CharSequenceUtils if a character is not defined

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

Arturo Bernal commented on LANG-1631:
-------------------------------------

In master.

 

TY

> Add short circuits in CharSequenceUtils if a character is not defined
> ---------------------------------------------------------------------
>
>                 Key: LANG-1631
>                 URL: https://issues.apache.org/jira/browse/LANG-1631
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Arturo Bernal
>            Priority: Major
>             Fix For: 3.12
>
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
>  
> Crash when the the char to be searched value it's out of range >=  '\u0000' <= '\uFFFF'
>  Getting the next error -->
>  
> {code:java}
> java.lang.IllegalArgumentException: Not a valid Unicode code point: 0xFFFFF936{code}
>  
>  
> Basically the problem is that when it is verified that the character to search is less than MIN_SUPPLEMENTARY_CODE_POINT, the search is not exited of the loop. It continues searching but this time values less than or equal to Character.MAX_CODE_POINT
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)