Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character.isWhitespace(-1) returns false #3284

Merged
merged 1 commit into from
May 15, 2023

Commits on May 15, 2023

  1. Character.isWhitespace(-1) returns false

    Fix scala-native#3154
    
    Previously, `Character.isWhitespace(-1)` and
    `Character.isLowerCase(-1)` throw
    `java.lang.ArrayIndexOutOfBoundsException: -1`.
    However, they should return `false` as other java std libraries do.
    
    We may want to fix `getTypeLT256`, but this commit guaranteed that
    the codepoint is gte 0 on call-site of `getTypeLT256` for
    not introducing the duplicated check of `codePoint < 0`.
    tanishiking committed May 15, 2023
    Configuration menu
    Copy the full SHA
    82651aa View commit details
    Browse the repository at this point in the history