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

Remove dependency on java.sql.Timestamp #878

Merged
merged 1 commit into from Nov 14, 2022

Conversation

acogoluegnes
Copy link
Contributor

Only one condition test refers to java.sql.Timestamp and it's unnecessary anyway because it also refers to java.util.Date (Timestamp inherits from Date). Only the Date API is then used to marshall and unmarshall values.

This avoids a dependency on the java.sql module, which some SDK does not seem to contain (e.g. JavaFX, reported by a user). This should also avoid needing this module in some Docker images (e.g. PerfTest, which pulls this module in its stripped JRE just for this reference apparently).

Mailing list thread: https://groups.google.com/g/rabbitmq-users/c/ORX91PwYhnw/m/xlMR9JTTAQAJ

Only one condition test refers to java.sql.Timestamp and it's
unnecessary anyway because it also refers to java.util.Date
(Timestamp inherits from Date). Only the Date API is then
used to marshall and unmarshall values.

This avoids a dependency on the java.sql module, which some
SDK does not seem to contain (e.g. JavaFX, reported by a user).
This should also avoid needing this module in some Docker images
(e.g. PerfTest, which pulls this module in its stripped JRE just
for this reference apparently).

Mailing list thread: https://groups.google.com/g/rabbitmq-users/c/ORX91PwYhnw/m/xlMR9JTTAQAJ
Copy link
Member

@michaelklishin michaelklishin left a comment

Choose a reason for hiding this comment

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

Nice catch!

@acogoluegnes acogoluegnes added this to the 5.17.0 milestone Nov 14, 2022
@acogoluegnes acogoluegnes merged commit 270123f into main Nov 14, 2022
@acogoluegnes acogoluegnes deleted the remove-dependency-on-sql-timestamp branch November 14, 2022 13:01
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.

None yet

2 participants