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

Emit Android min SDK 24 compatible code for Timestamp and Duration #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arg0d
Copy link
Collaborator

@arg0d arg0d commented May 3, 2024

DateTimeException requires min SDK 26, but our applications require min SDK 24.

DateTimeException requires min SDK 26, but our applications require
min SDK 24.
@arg0d arg0d requested review from Lipt0nas and packgron May 3, 2024 14:42
@arg0d arg0d changed the title Kristupas/target min android 24 Emit Android min SDK 24 compatible code for Timestamp and Duration May 3, 2024
@arg0d arg0d force-pushed the kristupas/target-min-android-24 branch from 0ab70b2 to 749b625 Compare May 3, 2024 14:44
Copy link
Member

@Lipt0nas Lipt0nas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be considered as a reverse breaking change? 🤔

@Lipt0nas
Copy link
Member

Lipt0nas commented May 3, 2024

Though in seriousness, im not sure if this actually passes a breaking change threshold, since someone that would have been relying on java.time.DateTimeException would find their code not working as expected

@arg0d
Copy link
Collaborator Author

arg0d commented May 6, 2024

I'm not sure either. In my mind, this is not an exception that you would normally try to handle. These exceptions would only happen when trying to pass negative timestamp/duration values into the bindings, which I think indicates a programming error, and not an error that the code should attempt to recover from. But maybe I'm wrong :D

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.

2 participants