Skip to content

Fix Juneteenth observance for US calendars#2786

Open
LarryHu0217 wants to merge 1 commit into
OpenGamma:mainfrom
LarryHu0217:codex/strata-juneteenth-calendar-2726
Open

Fix Juneteenth observance for US calendars#2786
LarryHu0217 wants to merge 1 commit into
OpenGamma:mainfrom
LarryHu0217:codex/strata-juneteenth-calendar-2726

Conversation

@LarryHu0217

Copy link
Copy Markdown

Fixes #2726.

Summary

Make Juneteenth use the existing bumpBack setting in the common US holiday-calendar generator, matching the handling already used for Independence Day and Christmas.

When Juneteenth falls on Saturday:

  • USGS and NYSE continue to observe the holiday on Friday when bumpBack is enabled.
  • USNY and NYFD keep Friday open when bumpBack is disabled.

The regression test covers all four calendars for Friday, June 18, 2027.

Validation

  • mvn -pl modules/basics -am -Dtest=GlobalHolidayCalendarsTest -Dsurefire.failIfNoSpecifiedTests=false test - 405 tests passed
  • mvn -pl modules/basics -am test - 5,814 tests passed
  • Maven Checkstyle
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

US/NY calendars incorrectly identify Friday, June 18th as a holiday despite bumpBack:false

1 participant