FISCO-BCOS / FISCO-BCOS/java-sdk
Java SDK编译时提示warning
- Dominant language
- Java
- Stars
- 58
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
Java SDK编译提示WARNING,建议优化去掉:
```bash
> Task :compileJava
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :sdk-core:compileJava
注: /Users/chenyujie/open-source/cyjseagull/new/java-sdk/sdk-core/src/main/java/org/fisco/bcos/sdk/utils/LinuxSecureRandom.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :sdk-crypto:compileJava
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
> Task :sdk-abi:compileJava
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :sdk-amop:compileTestJava
注: /Users/chenyujie/open-source/cyjseagull/new/java-sdk/sdk-amop/src/test/java/org/fisco/bcos/sdk/amop/MockChannelHandlerContext.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
> Task :sdk-amop:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/Users/chenyujie/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.60/bd47ad3bd14b8e82595c7adaa143501e60842a84/bcprov-jdk15on-1.60.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG
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
> Task :sdk-service:compileJava
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :sdk-transaction:compileJava
注: /Users/chenyujie/open-source/cyjseagull/new/java-sdk/sdk-transaction/src/main/java/org/fisco/bcos/sdk/contract/Contract.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the Gradle Java compilation and test tasks listed in the report, then inspect sdk-core/src/main/java/org/fisco/bcos/sdk/utils/LinuxSecureRandom.java, sdk-amop/src/test/java/org/fisco/bcos/sdk/amop/MockChannelHandlerContext.java, and sdk-transaction/src/main/java/org/fisco/bcos/sdk/contract/Contract.java. Check the deprecation, unchecked-operation, and Bouncy Castle reflective-access warnings, and consider the work done when the reported warnings are resolved or clearly accounted for.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100