-
Notifications
You must be signed in to change notification settings - Fork 7
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
8332085: Remove 10 year old transition check in GenerateCurrencyData tool #17
8332085: Remove 10 year old transition check in GenerateCurrencyData tool #17
Conversation
👋 Welcome back naoto! A progress list of the required criteria for merging this PR into |
@naotoj This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming a currency is no longer trustworthy because (and only because) 10 years has passed is a heuristic I suppose, but a dubious one, and a refusal to build seems a questionable way to inform people.
It only affects the entry with transition date, such as currency code switching XXX to XXY on that date, and the transition date is stale in this case, so currency code itself is supposed to be correct. Yet there is no convincing reasoning for the 10 year boundary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check has existed since OpenJDK's inception and still exists in trunk, so I can't find a reason as to why it was added. My presumption would be to enforce cleaning up the file regularly, but this seems to be happening anyway. JDK-8193552 removed the problematic Latvia & Lithuania values causing the current trouble in 2018 and JDK-8321480 just removed the Croatian one nine years before this check kicks in.
I'd be in favour of getting rid of the check if you also wanted to take this change to trunk, where it still exists. It seems likely the check will cause more trouble than the problem it is trying to solve. Having the "special case" currency values (all three values make it to the JDK data file and the choice is made at runtime) does mean having to do a date comparison that is avoidable, but I think a warning would suffice rather than breaking the build.
This is a good example of how such changes can take time to trickle down to all releases (if they ever do). I still remember being hit by this in 2014 with TR=TRL;2004-12-31-22-00-00;TRY
still being present in some old releases. JDK-
7077119 removed some very old ones not long before they hit the ten year mark.
I think this is the best approach for the reference implementation, without altering the data at all.
/approve yes |
@gnu-andrew |
/integrate |
Going to push as commit 4f3b76f. |
Fixing a build error on 8u-RI. The build tool that generates the currency data had a check that throws an exception if the transition date is more than 10 years away (past/future). The check does not seem meaningful. Removing the check will fix the issue.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-ri.git pull/17/head:pull/17
$ git checkout pull/17
Update a local copy of the PR:
$ git checkout pull/17
$ git pull https://git.openjdk.org/jdk8u-ri.git pull/17/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17
View PR using the GUI difftool:
$ git pr show -t 17
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-ri/pull/17.diff
Webrev
Link to Webrev Comment