google-cloud-java icon indicating copy to clipboard operation
google-cloud-java copied to clipboard

Support Java11 without warnings

Open ludoch opened this issue 7 years ago • 5 comments

Thanks for stopping by to let us know something could be better!

Please include as much information as possible:

When using the GA Open JDK 11 (Soon to be used widely, including in Google internal and external products, I see some warnings.

For example, a Cloud Datastore sample app emits this warning: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/Users/ludo/.m2/repository/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.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

So it seems that at least the protobuf internal dependency is a bit obsolete.

ludoch avatar Jan 03 '19 00:01 ludoch

#2545 discusses this. protobuf-java-3.6.1.jar is a dependency of grpc, so there isn't much we can do about it in this repository.

sduskis avatar Jan 03 '19 00:01 sduskis

But it is closed... Time to put pressure there.

ludoch avatar Jan 03 '19 02:01 ludoch

The pressure doesn't seem actionable.

sduskis avatar Jan 03 '19 03:01 sduskis

The right people are looking at the issue at protocolbuffers/protobuf#3781. There's nothing we can do in this repository, and the right people are looking at it. Please feel free to follow up on protocolbuffers/protobuf#3781.

sduskis avatar Jan 03 '19 15:01 sduskis

Got this error from ver 1.65.0. Seems to be fixed at ver 1.70.0

mikessoldier avatar Apr 25 '19 14:04 mikessoldier