1

我正在阅读数字资产快速入门指南。启动 Sandbox 时,我收到一些警告消息:

WARNING: An illegal reflective access operation has occurred 
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/vantage/.da/packages/sandbox/6.0.0/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
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

当我启动 Navigator 时也是如此:

Version 1.1.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/vantage/.da/packages/navigator/1.1.1/navigator-1.1.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
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

我应该担心某处有问题吗?

4

1 回答 1

2

这个警告是因为 gRPC 使用了一些在 Java 8 以上已弃用的操作。我假设您使用的是相当新的 JRE,这就是您看到此错误的原因。

他们在大约一个月前解决了这个问题,并且需要一段时间才能将更改传播到更高级别的库中,因此它可以包含在 Sandbox 和 Navigator 中。

见:https ://github.com/protocolbuffers/protobuf/issues/3781

TL;DR:暂时忽略警告,它是无害的,将被修复。:)

于 2019-02-14T14:10:06.197 回答