Skip to content

Add warning message for GSON serialization removal - #658

Open
darklight3it wants to merge 1 commit into
mainfrom
fix/warning-removal-of-gsonserializer
Open

darklight3it wants to merge 1 commit into
mainfrom
fix/warning-removal-of-gsonserializer

Conversation

@darklight3it

@darklight3it darklight3it commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Issue #, if available: #659

Description of changes:

In this PR I'm introducing a warning message to warn customers about removing support for Gson, the message is repeated only once, when the serializer is created the first time.

Tested locally with RIE. Here the log.

  15 Oct 2026 16:05:30,320 [INFO] (rapid) INVOKE RTDONE(status: success, produced bytes: 0, duration: 19.406000ms)
  END RequestId: d61073bb-c206-44de-b47c-762f036013f9
  REPORT RequestId: d61073bb-c206-44de-b47c-762f036013f9	Init Duration: 0.07 ms	Duration: 444.67 ms	Billed Duration: 445 ms	Memory Size: 3008 MB	Max Memory Used: 3008 MB	
  START RequestId: fc96bdaf-4191-487c-b97c-1a5fc73b51fa Version: $LATEST
  15 Oct 2026 16:05:30,331 [INFO] (rapid) INVOKE START(requestId: fc96bdaf-4191-487c-b97c-1a5fc73b51fa)
  {"timestamp":"2026-10-15T16:05:30.341Z","message":"Gson serialization for Android clients is deprecated and will be replaced by Jackson; verify your types serialize the same way with Jackson. See https://github.com/aws/aws-lambda-java-libs/issues/659","level":"WARN","AWSRequestId":"fc96bdaf-4191-487c-b97c-1a5fc73b51fa"}
  15 Oct 2026 16:05:30,347 [INFO] (rapid) INVOKE RTDONE(status: success, produced bytes: 0, duration: 15.708000ms)
  END RequestId: fc96bdaf-4191-487c-b97c-1a5fc73b51fa
  REPORT RequestId: fc96bdaf-4191-487c-b97c-1a5fc73b51fa	Duration: 15.85 ms	Billed Duration: 16 ms	Memory Size: 3008 MB	Max Memory Used: 3008 MB	
  START RequestId: c52fa38c-9f7f-4ec8-833e-0ff083b1a517 Version: $LATEST

Target (OCI, Managed Runtime, both): both

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@darklight3it
darklight3it force-pushed the fix/warning-removal-of-gsonserializer branch from 2298795 to f76a97c Compare October 15, 2026 15:07
@darklight3it
darklight3it force-pushed the fix/warning-removal-of-gsonserializer branch from f76a97c to ade3859 Compare October 15, 2026 15:12
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.66%. Comparing base (5cda7df) to head (ef3f320).

Files with missing lines Patch % Lines
.../lambda/runtime/api/client/EventHandlerLoader.java 25.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #658      +/-   ##
============================================
- Coverage     66.79%   66.66%   -0.14%     
  Complexity      223      223              
============================================
  Files            35       35              
  Lines          1018     1020       +2     
  Branches        146      146              
============================================
  Hits            680      680              
- Misses          286      288       +2     
  Partials         52       52              
Flag Coverage Δ
aarch64 66.66% <25.00%> (-0.14%) ⬇️
x86_64 66.27% <25.00%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@darklight3it
darklight3it force-pushed the fix/warning-removal-of-gsonserializer branch from ade3859 to 20fb2f4 Compare October 15, 2026 15:36
@darklight3it
darklight3it marked this pull request as ready for review October 15, 2026 15:38
@darklight3it darklight3it self-assigned this Oct 15, 2026
@darklight3it
darklight3it force-pushed the fix/warning-removal-of-gsonserializer branch from 20fb2f4 to ef3f320 Compare October 15, 2026 16:14

This branch has not been deployed

No deployments
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