aliyun / aliyun/alibabacloud-java-async-sdk

GWS Async API caused warning in JDK 11

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
34
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Use

<dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>alibabacloud-gws20190618</artifactId>
            <version>1.0.0</version>
</dependency>

to call api would cause the following warnings in JDK 11 (maybe related to all versions above 8)

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hc.core5.util.ReflectionUtils$1 (file:/Users/***/.m2/repository/org/apache/httpcomponents/core5/httpcore5/5.1.3/httpcore5-5.1.3.jar) to method sun.security.ssl.SSLEngineImpl.getApplicationProtocol()
WARNING: Please consider reporting this to the maintainers of org.apache.hc.core5.util.ReflectionUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning using the listed alibabacloud-gws20190618 dependency on JDK 11, then inspect the Apache httpcore5 ReflectionUtils access shown in the warning. Determine whether the SDK or its dependency chain is responsible; done should mean the warning is resolved or the supported JDK behavior and workaround are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.