core: fix java.nio.ByteBuffer Java 9+ incompatible usage#6839
core: fix java.nio.ByteBuffer Java 9+ incompatible usage#6839dapengzhang0 merged 1 commit intogrpc:masterfrom
Conversation
|
We shouldn't need this, as we have See my latest comment in #6829 (comment). |
|
This is for third party users who build grpc source with Java 9+, and publish to maven local, even with sourceCompatibility = 1.7 and targetCompatibility = 1.7 unchanged. Their android app or java 8 app with grpc library in local maven repo would fail. |
Would they fail? I don't think so as long as gRPC has |
If you publish maven local of grpc master with java 11, and then build examples/android, you will fail. If you suppress the failure by dontwarn, you might fail in the runtime. |
|
After looking around for a while, this seems to be more than source/target compatibility issue. The generated bytecode with JDK 9+ for method |
Yes, the same source can be compiled and run in all jdk's, but in different binaries, and the jdk9+ binary is not backward compatible. |
No description provided.