Skip to content

fix(jjwt-jackson): update test API usage and jvmArgs for 0.12.0 metadata #638

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

erguiti-imane
Copy link
Member

fix: add reachability metadata for jjwt-jackson 0.12.0

  • Updated test usage to Jwts.parser() instead of parserBuilder() to align with jjwt-jackson 0.12.0 API.
  • Ensures native-image-agent can generate metadata without crashing due to illegal reflective access.
  • Added required JVM arguments to the test task to allow reflective access to internal JDK classes:
    • --add-opens=java.base/sun.security.util=ALL-UNNAMED
    • --add-opens=java.base/java.io=ALL-UNNAMED
  • Generated reflect-config.json is now valid for jjwt-jackson 0.12.0.

What does this PR do?

Code sections where the PR accesses files, network, docker or some external service

  • (example link to code section)

Checklist before merging

Adjusted 'Jwts.parserBuilder()' to 'Jwts.parser()' to match jjwt-jackson 0.12.0.

Added necessary JVM args to allow reflective access for native-image-agent:

- '--add-opens=java.base/sun.security.util=ALL-UNNAMED'
- '--add-opens=java.base/java.io=ALL-UNNAMED'
@erguiti-imane erguiti-imane requested a review from a team as a code owner June 5, 2025 19:47
@erguiti-imane erguiti-imane requested a review from fniephaus June 5, 2025 19:47
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.

1 participant