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-21295 Fix for Java version number overflow problem in 61 #1457

Closed
wants to merge 1 commit into from

Conversation

yumaoka
Copy link
Member

@yumaoka yumaoka commented Nov 10, 2020

Merging the fix for ICU-21219 (PR #1245) to ICU 61.

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.

Checklist

Merging the fix for ICU-21219 (PR unicode-org#1245) to ICU 61.

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 yumaoka changed the title ICU-21295 Fix for Java version number overflow problem ICU-21295 Fix for Java version number overflow problem in 61 Nov 10, 2020
@yumaoka yumaoka added the incomplete Needs work; do not approve/merge as is. label Aug 18, 2021
@yumaoka
Copy link
Member Author

yumaoka commented Mar 9, 2022

Close this for now. May work on it later if there are demands.

@yumaoka yumaoka closed this Mar 9, 2022
@yumaoka yumaoka deleted the vinf-61 branch March 13, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete Needs work; do not approve/merge as is.
Projects
None yet
1 participant