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

ICU-21219 Fix for Java version number overflow problem #1245

Merged
merged 1 commit into from
Aug 19, 2020

Commits on Aug 19, 2020

  1. ICU-21219 Fix for Java version number overflow problem

    Internal API VersionInfo.javaVersion() maps Java version number to  4 integer fields. Each field must be up to 255. However, recent OpenJDK 8 update exceed this range.
    
    Luckily, we have only one reference in our code base for checking Java version. CharsetUTF16 uses maxBytePerChar = 4 for Java 5 and older, maxBytePerChar = 2 for newer Java version. Because we no longer support Java 5 runtime, we don't need this conditional check.
    
    We don't have any other uses of VersionInfo.javaVersion(). Java's version range is not what we can control, so I decided to delete the internal use only API completely.
    yumaoka committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    ab08fac View commit details
    Browse the repository at this point in the history