-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: fix java.nio.ByteBuffer Java 9+ incompatible usage #6839
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.