3 0 modernization#257
Merged
KosherJava merged 22 commits intoKosherJava:3-0-modernizationfrom Mar 22, 2026
Merged
Conversation
…e correct SUNRISE enum in getInstantFromTime
Fix javadoc on `isUseElevation`
da9eef0 to
221c7a9
Compare
KosherJava
approved these changes
Mar 22, 2026
Owner
KosherJava
left a comment
There was a problem hiding this comment.
Thank you very much. I will be testing this over the next few days
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates the Jewish date and Jewish calendar to the new
java.timeclasses.Changes made:
Other than migrating to the new classes, these are the breaking changes which have been added.
equalscheck now ensures that two classes are only identical if they are of the exact same type. Previously, this kind of strict equality checking was done in thehashCodefunction. However, this is incorrect.JewishDateclass.ZonedDateTimetoLocalDatein the Zmanim classes.getSunrisewould always return elevation-adjusted sunrise. We have renamed the method names to more clearly indicate what time is being returned.getInstantFromTimefunction.Testing
All the
Zmanimmethods have been tested against the Rust implementation, which matches a fork of KosherJava that used the ICU calendar classes instead of Java that you tell calendar classes. The exception to this isgetFixedLocalChatzoswhich utilizes thegetLocalMeanTimemethod.As far as the Jewish calendar methods go, testing is not as thorough.
The
getYomTovIndexfunction is completely tested, as well as some of the other methods on the class.I would recommend having an LLM create a very thorough regression test between our final version and 2.6 before any release.
Future work:
getLocalMeanTimealso has not been fixed.getSunriseWithElevationmay not be a good name for this function.