FISCO-BCOS / FISCO-BCOS/evidenceSample

使用中出现警告 WARNING: An illegal reflective access operation has occurred

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
104
Forks
71
PR merge metrics
No merged PRs in 30d

Description

使用过程中出现如下的警告,不影响正常使用,但是很影响观感,希望可以修复。

```
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/home/bencq/source_code/ProofOfExistence/evidenceSample/evidence_toolkit/lib/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
```

我使用的JDK版本是openjdk-14
应该是JDK版本高导致的问题。

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with OpenJDK 14 and inspect how evidence_toolkit/lib/bcprov-jdk15on-1.60.jar is included. No source file or test is named; done means the reported illegal reflective-access warning no longer appears during normal use.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.