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

Drop dependency on jaxb for converting binary arrays to hex #526

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

esirkova
Copy link

@esirkova esirkova commented Aug 24, 2023

Issue #, if available:
This is related to #452 and would remove the need for #522.

Description of changes:
The jaxb depedency (javax.xml.bind) is used in a couple of classes to convert a binary array to a hex string. As suggested in #452 (comment) it is possible to drop the dependency and just have a simple converter instead. This will also remove the need to care about potential jakarta namespace switch in the future. This is important because currently trying to use the kinesis-producer library together with Spring 6 + latest Spring JPA/Hibernate results in errors. Removing the jaxb dependency from the kinesis-producer library fixes this.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

return INSTANCE.convertToHex(data);
}

private String convertToHex(byte[] data) {
Copy link
Author

Choose a reason for hiding this comment

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

The implementation here is the same as in the original jaxb DatatypeConverter.printHexBinary.

@esirkova
Copy link
Author

Can some of the maintainers of the library also have a look at this PR?

@josiahhaswell
Copy link

Thanks, @esirkova! What's the current status on this? We are upgrading to Java 17/JakartaEE and this is a blocker for us.

@aakkem aakkem merged commit 4355c41 into awslabs:master Mar 6, 2024
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.

7 participants