Skip to content

Java 25 restricted method usage of CRT #919

@timomeinen

Description

@timomeinen

Describe the bug

Using AWS CRT with Java 25 gives warnings:

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by software.amazon.awssdk.crt.CRT in an unnamed module (jar:nested:/opt/app/app.jar/!BOOT-INF/lib/aws-crt-0.38.9.jar!/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

CRT compatible with Java 25 LTS

Current Behavior

Java 25 gives runtime warnings

Reproduction Steps

Put AWS CRT in classpath and execute with Java 25

Possible Solution

No response

Additional Information/Context

No response

aws-crt-java version used

0.38.9

Java version used

25

Operating System and version

macos, linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions