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

feat: WebHookUtil classes using the jakarta namespace #2484

Merged
merged 2 commits into from
May 24, 2024
Merged

feat: WebHookUtil classes using the jakarta namespace #2484

merged 2 commits into from
May 24, 2024

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented May 24, 2024

Fixes #2260

Internal bug b/342581012.

I copied the WebhookUtils and WebhookUtils (https://github.com/googleapis/google-api-java-client/tree/2d25655b94dc1ae93b5c3a97046daf6a35a9923b/google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications ) replacing the javax namespace with the jakarta.servlet namespace.
This is the same methology as googleapis/google-oauth-java-client#1115.

  • Replaced javax with jakarta and declared the dependency with
    provided scope.
  • Keeping the classes as Beta annotated.
  • WebhookHeaders in the original package does not reference the javax namespace.
  • No tests exist for the classes.
  • Added @since 2.6.0 as the last release was 2.5.1.

Fixes #2260

Copied the implementation with the jakarta.servlet namespace
using the same methology as googleapis/google-oauth-java-client#1115.

- Replaced javax with jakarta and declared the dependency with
  provided scope.
- Keeping the classes as `Beta` annotated.
- No tests exist for the classes.
- Added `@since 2.6.0` as the last release was 2.5.1.
@suztomo suztomo requested a review from a team as a code owner May 24, 2024 13:48
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label May 24, 2024
Copy link
Contributor

@diegomarquezp diegomarquezp left a comment

Choose a reason for hiding this comment

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

TLDR - Jakarta webservers don't contain javax classes, producing NoClassFoundError if the user code references any of the webhooks (example). This PR adds copies of the webhooks using a special package suffix jakarta

@suztomo suztomo merged commit e928cfa into main May 24, 2024
16 checks passed
@suztomo suztomo deleted the i2260 branch May 24, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support jakarta.servlet naming over javax.servlet
2 participants