Skip to content

Conversation

@Kaustav-Sarkar
Copy link
Contributor

Description

Fixes an IllegalArgumentException in TimeStamp*TZVector.set/setSafe when unsetting values using a holder with a null timezone. The validation logic now correctly ignores the timezone check when holder.isSet <= 0, allowing default-constructed holders to be used for unsetting values as expected.

Comprehensive tests added for all timestamp precisions (Micro, Milli, Nano, Sec) to verify the fix and ensure the existing workaround (setting explicit timezone) remains supported.

Closes #125 .

@github-actions
Copy link

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@Kaustav-Sarkar
Copy link
Contributor Author

Please set labels, I do not have permission

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.

[Java] IllegalArgumentException when unsetting TimeStamp*TZVector values

1 participant