aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

Support jakarta.* namespaces

Open MasatoshiTada opened this issue 4 years ago • 5 comments

Describe the Feature

When I call AmazonS3#putObject() , I can see a WARN log below:

JAXB is unavailable. Will fallback to SDK implementation which may be less performant

So I added dependencies of 3.0.0 (this version is the latest) of jakarta.xml.bind:jakarta.xml.bind-api and com.sun.xml.bind:jaxb-api . But unfortunately, I still see the WARN log above.

I changed versions from 3.0.0 to 2.3.3 , and the WARN log was disappered.

It seems that aws-sdk-java doesn't support jakarta.* namespaces.

Is your Feature Request related to a problem?

At this time, this is not a very big problem. But it becomes bigger with the lapse of time.

Proposed Solution

Describe alternatives you've considered

As I mentioned above, use 2.3.3 . And if you use JDK 8, this problem doesn't occur.

Additional Context

Your Environment

  • AWS Java SDK version used: 1.11.327
  • JDK version used: 11
  • Operating System and version: macOS Big Sur 11.2.3 (M1)

MasatoshiTada avatar Mar 14 '21 03:03 MasatoshiTada

Hi @MasatoshiTada yes, currently the SDK only supports javax.xml.bind:jaxb-api, to work around the issue you can add the lib as a dependency. Marking as a feature request.

Please note that as the team's focus is in SDK v2 work, we don't have a timeline for when this will be prioritized.

debora-ito avatar Mar 22 '21 18:03 debora-ito

@debora-ito Thank you for your comment!

Please note that as the team's focus is in SDK v2 work, we don't have a timeline for when this will be prioritized.

Do you have any plan to support jakarta.* namespaces in SDK v2?👀

MasatoshiTada avatar Apr 02 '21 00:04 MasatoshiTada

Still no news on this issue?

antechrestos avatar Feb 11 '23 15:02 antechrestos

@MasatoshiTada

I believe we don't use any package in SDK v2 that requires migrating to jakarta namespaces. If you are seeing otherwise, please share your dependency tree.

debora-ito avatar Feb 15 '23 20:02 debora-ito

Indeed, migration to sdk v2 works like a charm

antechrestos avatar Feb 15 '23 21:02 antechrestos