awslabs / awslabs/aws-crt-java

Java 25 restricted method usage of CRT

Open
#919 3 comments 3 reactions 0 assignees View on GitHub
feature-request p3
Dominant language
Java
Stars
76
Forks
46
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.